Increase reboot wait timeout in disable-selinux for non-virt hosts

Default of 300s was proving too short for real machines, increase to
600s.
This commit is contained in:
Mark Goddard 2017-02-16 10:44:30 +00:00
parent ead380c4d0
commit 94b911d44d
3 changed files with 6 additions and 0 deletions

View File

@ -3,3 +3,4 @@
hosts: controllers:seed
roles:
- role: disable-selinux
disable_selinux_reboot_timeout: "{{ 600 if ansible_virtualization_role == 'host' else 300 }}"

View File

@ -0,0 +1,4 @@
---
# Number of seconds to wait for hosts to become accessible via SSH after being
# rebooted.
disable_selinux_reboot_timeout:

View File

@ -51,6 +51,7 @@
state: started
# Wait for 10 seconds before polling to ensure the node has shutdown.
delay: 10
timeout: "{{ disable_selinux_reboot_timeout }}"
when:
- "{{ selinux_result | changed }}"
- "{{ not is_local | bool }}"