We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe42ccf commit e84cc0bCopy full SHA for e84cc0b
ansible/bootstrap.yml
@@ -226,9 +226,14 @@
226
- selinux
227
- update
228
tasks:
229
+ - name: Check for pending reboot from package updates
230
+ command:
231
+ cmd: dnf needs-restarting
232
+ register: update_reboot_required
233
- name: Reboot to cover SELinux state change or package upgrades
234
reboot:
235
post_reboot_delay: 30
236
+ when: (sestatus['reboot_required'] | default(false)) or (update_reboot_required.stdout != '')
237
- name: Wait for hosts to be reachable
238
wait_for_connection:
239
sleep: 15
0 commit comments