Skip to content

Commit 38ef20f

Browse files
committed
make reboot conditional on package or SELinux changes again
1 parent fe42ccf commit 38ef20f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ansible/bootstrap.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@
229229
- name: Reboot to cover SELinux state change or package upgrades
230230
reboot:
231231
post_reboot_delay: 30
232+
when: (sestatus['reboot_required'] | default(false)) or (updates.changed | bool)
232233
- name: Wait for hosts to be reachable
233234
wait_for_connection:
234235
sleep: 15

0 commit comments

Comments
 (0)