From 528ab2e82857ceaf249d24914b237d6dd9d4f7ee Mon Sep 17 00:00:00 2001 From: Wendell Jones Date: Wed, 10 Sep 2025 09:21:53 -0400 Subject: [PATCH] refactor: adjust reboot check command and import role in yum_updates.yaml --- yum_updates.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/yum_updates.yaml b/yum_updates.yaml index 3432fae..d14d4aa 100644 --- a/yum_updates.yaml +++ b/yum_updates.yaml @@ -2,6 +2,10 @@ - hosts: yumhosts gather_facts: no tasks: + - name: Import a role + ansible.builtin.import_role: + name: LucasJanin.ssh_config + - name: Update all installed packages using YUM module ansible.builtin.yum: use_backend: yum3 @@ -25,7 +29,7 @@ ansible.builtin.command: needs-restarting -r register: reboot_check ignore_errors: yes # Important: The command returns a non-zero exit code if a reboot is needed - changed_when: false # This command does not change the system state + #changed_when: false # This command does not change the system state - name: Reboot the server if required ansible.builtin.reboot: