From b6603d9653b69617a6be0cdc6c249e0ef6b82b3c Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 25 Oct 2021 22:39:31 +0200 Subject: [PATCH] add a check for ubuntu --- tasks/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 15ce2bd..8afb6fb 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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: