Browse Source

wait for server reboot after selinux changed

master
Nicolas Massé 8 years ago
parent
commit
74a89c1bf9
  1. 11
      prepare.yml

11
prepare.yml

@ -84,13 +84,18 @@
tags: selinux tags: selinux
- name: Reboot if SELinux state has changed - name: Reboot if SELinux state has changed
command: '/sbin/shutdown -r now "reboot triggered by Ansible"' shell: 'sleep 5 && /sbin/shutdown -r now "reboot triggered by Ansible"'
async: 1
poll: 0
when: selinux.changed when: selinux.changed
tags: selinux tags: selinux
- name: Waiting for server(s) to come back - name: Waiting for server(s) to come back
fail: wait_for_connection:
msg: "Wait for the server(s) to reboot and re-run this playbook" connect_timeout: 20
sleep: 5
delay: 5
timeout: 300
when: selinux.changed when: selinux.changed
tags: selinux tags: selinux

Loading…
Cancel
Save