From c60575a53003338e382f03fb23ec34e31972770f Mon Sep 17 00:00:00 2001 From: Mark Bolwell Date: Mon, 20 Nov 2023 16:32:32 +0000 Subject: [PATCH] removed the extra facts as all are captured Signed-off-by: Mark Bolwell --- tasks/main.yml | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 1bba0280..9124d732 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,17 +1,5 @@ --- -- name: Gather distribution info - # we need: - # - hardware for ansible_facts.mounts - # - platform for ansible_architecture (ansible internal) - # - virtual for ansible_facts.virtualization_type - ansible.builtin.setup: - gather_subset: distribution,hardware,platform,virtual,!all,!min - when: - - ansible_facts.distribution is not defined - tags: - - always - - name: Check OS version and family ansible.builtin.fail: msg: "This role can only be run against Ubuntu 22. {{ ansible_facts.distribution }} {{ ansible_facts.distribution_major_version }} is not supported."