Roles only run on intended supported OS, and minor cleanup of when statements to match
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user