PlayBook1 [Ubuntu] playbook 만들기 - update, reboot, stop 모든 서버 update하기 playbook sudo vim update.yml --- # update server - hosts: all tasks: - name: Update and upgrade apt all packages become: true apt: upgrade: yes update_cache: yes cache_valid_time: 86400 #One day ansible-playbook update.yml 으로 playbook을 실행해준다 모든 서버 reboot 하기 sudo vim reboot.yml --- # reboot all server - hosts: all become: true tasks: - name: rebooting server reboot: ansible-playboo.. 2022. 1. 11. 이전 1 다음 반응형