Ansible
Ansible - 10 (명령어)
hwpform
2023. 12. 31. 09:08
728x90
반응형
# ansible all -m shell -a "timedatectl | grep 'Time zone';"
# 서버의 시간대 가져 오기
# ansible nginx 설치
# ubuntu.yml
--- - name: Install nginx on Ubuntu hosts: Ubuntu gather_facts: no become: yes tasks: - name: install nginx web server apt: pkg=nginx state=present update_cache=yes - name: Upload default index.html for web server get_url: url=https://www.nginx.com dest=/usr/share/nginx/html/ mode=0644 validate_certs=no
728x90
반응형
LIST