add a check for ubuntu

This commit is contained in:
Andreas Zweili 2021-10-25 22:39:31 +02:00
parent 9818035f97
commit b6603d9653
1 changed files with 3 additions and 1 deletions

View File

@ -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: