Ansible 2.20 has deprecated the use of Ansible facts as variables. For example, `ansible_distribution` is now deprecated in favor of `ansible_facts["distribution"]`. This is due to making the default setting `INJECT_FACTS_AS_VARS=false`. For now, this will create WARNING messages, but in Ansible 2.24 it will be an error. See https://docs.ansible.com/projects/ansible/latest/porting_guides/porting_guide_core_2.20.html#inject-facts-as-vars Signed-off-by: Rich Megginson <rmeggins@redhat.com>
21 lines
767 B
YAML
21 lines
767 B
YAML
# vars for handling conditionals for RedHat and clones
|
|
# DO NOT EDIT - file is auto-generated
|
|
# repo is https://github.com/linux-system-roles/.github
|
|
# file is playbooks/templates/tests/vars/rh_distros_vars.yml
|
|
---
|
|
# Ansible distribution identifiers that the role treats like RHEL
|
|
__aide_rh_distros:
|
|
- AlmaLinux
|
|
- CentOS
|
|
- RedHat
|
|
- Rocky
|
|
|
|
# Same as above but includes Fedora
|
|
__aide_rh_distros_fedora: "{{ __aide_rh_distros + ['Fedora'] }}"
|
|
|
|
# Use this in conditionals to check if distro is Red Hat or clone
|
|
__aide_is_rh_distro: "{{ ansible_facts['distribution'] in __aide_rh_distros }}"
|
|
|
|
# Use this in conditionals to check if distro is Red Hat or clone, or Fedora
|
|
__aide_is_rh_distro_fedora: "{{ ansible_facts['distribution'] in __aide_rh_distros_fedora }}"
|