diff --git a/update.yml b/update.yml index 66088ff..8728a7d 100644 --- a/update.yml +++ b/update.yml @@ -17,21 +17,9 @@ ignore_errors: true when: ansible_os_family == "RedHat" - - name: Check if reboot required (Debian/Ubuntu) - stat: - path: /var/run/reboot-required - register: reboot_required_file - when: ansible_os_family != "RedHat" - - name: Reboot if required (RedHat/CentOS) reboot: when: - ansible_os_family == "RedHat" - needs_restarting_output.rc == 1 - - needs_restarting_output is defined - - - name: Reboot if required (Debian/Ubuntu) - reboot: - when: - - ansible_os_family != "RedHat" - - reboot_required_file.stat.exists == true + - needs_restarting_output is defined \ No newline at end of file