tasks: assert supported OS family (RedHat/Debian)
This commit is contained in:
parent
51f514b184
commit
e6801edeed
1 changed files with 7 additions and 0 deletions
|
@ -4,6 +4,13 @@
|
||||||
# NOTE: limited EL8 testing/coverage, ansible-core 2.17+ lacks support for Python 3.6
|
# NOTE: limited EL8 testing/coverage, ansible-core 2.17+ lacks support for Python 3.6
|
||||||
# [managing Python releases considered out of scope]
|
# [managing Python releases considered out of scope]
|
||||||
|
|
||||||
|
- name: Assert Supported Distribution
|
||||||
|
ansible.builtin.assert:
|
||||||
|
that:
|
||||||
|
- ansible_os_family in ['Debian', 'RedHat'] # + several derivatives
|
||||||
|
fail_msg: "OS Family '{{ ansible_os_family }}' not supported, expected Debian/RedHat."
|
||||||
|
success_msg: "Supported OS Family ({{ ansible_os_family }})"
|
||||||
|
|
||||||
- name: Package Facts
|
- name: Package Facts
|
||||||
ansible.builtin.package_facts: { manager: auto }
|
ansible.builtin.package_facts: { manager: auto }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue