Roles only run on intended supported OS, and minor cleanup of when statements to match

This commit is contained in:
2026-09-01 22:01:59 -05:00
parent d38a19c9b5
commit a81059d4e4
26 changed files with 720 additions and 200 deletions
@@ -2,7 +2,6 @@
# tasks file for ensure_os_upgrade - Fedora
- name: Ensure System-upgrade Download
when:
- ansible_facts["system"] == 'Linux'
- ansible_facts["distribution"] == 'Fedora'
- ensure_os_upgrade is defined
- ensure_os_upgrade.package_list is defined
@@ -13,7 +12,6 @@
dnf -y system-upgrade download --refresh --releasever={{ ensure_os_upgrade.target_version | int }}
- name: Ensure System-upgrade Reboot
when:
- ansible_facts["system"] == 'Linux'
- ansible_facts["distribution"] == 'Fedora'
- ensure_os_upgrade is defined
- ensure_os_upgrade.package_list is defined
@@ -26,7 +24,6 @@
sleep 5 && dnf -y system-upgrade reboot
- name: Wait For The Reboot
when:
- ansible_facts["system"] == 'Linux'
- ansible_facts["distribution"] == 'Fedora'
- ensure_os_upgrade is defined
- ensure_os_upgrade.package_list is defined