Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - hosts: testserver
- tasks:
- - name: System update
- yum: name=* state=latest
- - name: Reboot server
- shell: sleep 2 && /sbin/shutdown -r now "Ansible system reboot"
- async: 1
- poll: 0
- - name: Wait for host sshd
- local_action: wait_for host={{ inventory_hostname }} port=22 delay=20 connect_timeout=200
- become: false
- delegate_to: localhost
- - name: Install epel-release
- yum: name=epel-release state=latest
- - name: Install Midnight commander
- yum: name=mc state=latest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement