Skip to content

Commit

Permalink
removed the extra facts as all are captured
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Bolwell <[email protected]>
  • Loading branch information
uk-bolly committed Nov 20, 2023
1 parent b03f94e commit c60575a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tasks/main.yml
Original file line number Diff line number Diff line change
@@ -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."
Expand Down

0 comments on commit c60575a

Please sign in to comment.