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 3e99183 commit eff5a85Copy full SHA for eff5a85
tasks/main.yml
@@ -35,7 +35,17 @@
35
register: __el_patching_need_restart
36
failed_when: __el_patching_need_restart.rc > 1
37
38
-- name: Reboot
+- name: Inform user if reboot is required
39
+ ansible.builtin.debug:
40
+ msg: "Reboot is required to apply patches."
41
+ when: __el_patching_need_restart.rc == 1
42
+
43
+- name: Inform user that reboot is not required
44
45
+ msg: "Reboot is not required to apply patches."
46
+ when: __el_patching_need_restart.rc == 0
47
48
+- name: Reboot host
49
ansible.builtin.reboot:
50
reboot_timeout: "{{ el_patching_reboot_timeout }}"
51
check_mode: "{{ el_patching_check_mode }}"
0 commit comments