Skip to content

Commit 7f8387a

Browse files
authored
Update main.yml
Removed message which informs the user about a not required reboot. It can be spammy and not useful. It is preferred to be informed only when a reboot is required.
1 parent d7fa7ac commit 7f8387a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tasks/main.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,8 @@
4040
msg: "Reboot is required to apply patches."
4141
when: __el_patching_need_restart.rc == 1
4242

43-
- name: Inform user that reboot is not required
44-
ansible.builtin.debug:
45-
msg: "Reboot is not required to apply patches."
46-
when: __el_patching_need_restart.rc == 0
47-
4843
- name: Reboot host
4944
ansible.builtin.reboot:
5045
reboot_timeout: "{{ el_patching_reboot_timeout }}"
5146
check_mode: "{{ el_patching_check_mode }}"
52-
when: el_patching_auto_reboot | bool and __el_patching_need_restart.rc == 1
47+
when: el_patching_auto_reboot | bool and __el_patching_need_restart.rc == 1

0 commit comments

Comments
 (0)