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 - Ubuntu
- name: Ensure update-manager-core is installed
when:
- ansible_facts["system"] == 'Linux'
- ansible_facts["distribution"] == 'Ubuntu'
- ensure_os_upgrade is defined
ansible.builtin.apt:
@@ -11,7 +10,6 @@
- name: Configure Ubuntu Release Upgrade Prompt
when:
- ansible_facts["system"] == 'Linux'
- ansible_facts["distribution"] == 'Ubuntu'
- ensure_os_upgrade is defined
- ensure_os_upgrade.target_version is defined
@@ -22,7 +20,6 @@
- name: Execute Ubuntu Release Upgrade
when:
- ansible_facts["system"] == 'Linux'
- ansible_facts["distribution"] == 'Ubuntu'
- ensure_os_upgrade is defined
- ensure_os_upgrade.target_version is defined
@@ -34,7 +31,6 @@
- name: Reboot Ubuntu After Upgrade
when:
- ansible_facts["system"] == 'Linux'
- ansible_facts["distribution"] == 'Ubuntu'
- ensure_os_upgrade is defined
- ensure_os_upgrade.target_version is defined