Skip to content

Commit 809e3f8

Browse files
committed
Always reboot after selinux and package updates
1 parent f594d37 commit 809e3f8

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

ansible/bootstrap.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -226,16 +226,9 @@
226226
- selinux
227227
- update
228228
tasks:
229-
- name: Check for pending reboot from package updates
230-
stat:
231-
path: /var/run/reboot-required
232-
register: update_reboot_required
233-
- debug:
234-
msg: "setstatus:{{ (sestatus.reboot_required | default(false)) }} packages: {{ (update_reboot_required.stat.exists | bool) }}"
235-
- name: Reboot if required from SELinux state change or package upgrades
229+
- name: Reboot to cover SELinux state change or package upgrades
236230
reboot:
237231
post_reboot_delay: 30
238-
when: (sestatus['reboot_required'] | default(false)) or (update_reboot_required.stat.exists | bool)
239232
- name: Wait for hosts to be reachable
240233
wait_for_connection:
241234
sleep: 15

0 commit comments

Comments
 (0)