Skip to content

Instantly share code, notes, and snippets.

@connvoi
Created March 3, 2016 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save connvoi/fd10e417cea90778ee6b to your computer and use it in GitHub Desktop.
Save connvoi/fd10e417cea90778ee6b to your computer and use it in GitHub Desktop.
--
- hosts: all
sudo : yes
tasks:
- name: update glibc
yum: name=glibc state=latest
- name: restart machine
shell: sleep 2 && shutdown -r now "Ansible updates triggered"
async: 1
poll: 0
sudo: true
ignore_errors: true
- name: waiting for server to come back
local_action: wait_for host={{ inventory_hostname }} state=started delay=30 timeout=300
sudo: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment