check for the distribution name

This commit is contained in:
Andreas Zweili 2021-10-25 22:41:55 +02:00
parent edef116519
commit 3293d7c822
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
state: "present"
when:
- ansible_facts['distribution_major_version'] | int >= 20
- ansible_facts['os_family'] == "Ubuntu"
- ansible_facts['distribution'] == "Ubuntu"
- name: "Upgrade to the latest packages"
apt: