remove update mechanism for other distributions

This commit is contained in:
Lukas Greve
2025-10-24 21:05:35 +02:00
parent 55e7de19a4
commit 93561738df

View File

@@ -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