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:
parent
ead380c4d0
commit
94b911d44d
@ -3,3 +3,4 @@
|
||||
hosts: controllers:seed
|
||||
roles:
|
||||
- role: disable-selinux
|
||||
disable_selinux_reboot_timeout: "{{ 600 if ansible_virtualization_role == 'host' else 300 }}"
|
||||
|
4
ansible/roles/disable-selinux/defaults/main.yml
Normal file
4
ansible/roles/disable-selinux/defaults/main.yml
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
# Number of seconds to wait for hosts to become accessible via SSH after being
|
||||
# rebooted.
|
||||
disable_selinux_reboot_timeout:
|
@ -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 }}"
|
||||
|
Loading…
Reference in New Issue
Block a user