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 - 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
|
||||
|
||||
Reference in New Issue
Block a user