generated from ansible/desktop
add a check for ubuntu
This commit is contained in:
parent
9818035f97
commit
b6603d9653
|
@ -2,7 +2,9 @@
|
|||
apt:
|
||||
name: "python-is-python3"
|
||||
state: "present"
|
||||
when: ansible_facts['distribution_major_version'] | int >= 20
|
||||
when:
|
||||
- ansible_facts['distribution_major_version'] | int >= 20)
|
||||
- ansible_facts['os_family'] == "Ubuntu"
|
||||
|
||||
- name: "Upgrade to the latest packages"
|
||||
apt:
|
||||
|
|
Reference in New Issue