250x250
Notice
Recent Posts
Recent Comments
«   2024/11   »
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Archives
Today
Total
관리 메뉴

삽더하기실수

Ansible-playbook window,Centos,Ubuntu timezone.yml 본문

Ansible

Ansible-playbook window,Centos,Ubuntu timezone.yml

삽수 2023. 9. 3. 18:56
728x90

timezone.yml

---
 - name: Setup linux timezone
   hosts: CentOS:Ubuntu
   gather_facts: no
   become: yes

   tasks:
     - name: set timezone to Asisa/Seoul
       timezone: name=Asia/Seoul

 - name: Setup Windows timezone
   hosts: win
   gather_facts: no

   tasks:
     - name: set timezone to 'Korea Standard Time'
       win_timezone: timezone='Korea Standard Time'

 

ansible-playbook timezone.yml -k

728x90

'Ansible' 카테고리의 다른 글

Ansible 기본 정리  (0) 2024.04.13
Ubuntu Ansible-playbook nginx 설치  (0) 2023.08.27
ansible-playbook 공유 풀더 만들기  (0) 2023.08.27
ansible-playbook nfs 일치시키기  (0) 2023.08.27
엔서블 코어 사용 준비  (0) 2023.08.13