diff --git a/tests/vars/rh_distros_vars.yml b/tests/vars/rh_distros_vars.yml new file mode 100644 index 0000000..e1ccb0d --- /dev/null +++ b/tests/vars/rh_distros_vars.yml @@ -0,0 +1,20 @@ +# 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 +__ad_integration_rh_distros: + - AlmaLinux + - CentOS + - RedHat + - Rocky + +# Same as above but includes Fedora +__ad_integration_rh_distros_fedora: "{{ __ad_integration_rh_distros + ['Fedora'] }}" + +# Use this in conditionals to check if distro is Red Hat or clone +__ad_integration_is_rh_distro: "{{ ansible_distribution in __ad_integration_rh_distros }}" + +# Use this in conditionals to check if distro is Red Hat or clone, or Fedora +__ad_integration_is_rh_distro_fedora: "{{ ansible_distribution in __ad_integration_rh_distros_fedora }}" diff --git a/vars/main.yml b/vars/main.yml index c6487a1..4c161b3 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -27,3 +27,21 @@ __ad_integration_required_facts_subsets: "{{ ['!all', '!min'] + __ad_integration_sample_realm: sample-realm.com # Sample dc server used for system tests without available real AD __ad_integration_sample_dc: sample-dc.sample-realm.com + +# BEGIN - DO NOT EDIT THIS BLOCK - rh distros variables +# Ansible distribution identifiers that the role treats like RHEL +__ad_integration_rh_distros: + - AlmaLinux + - CentOS + - RedHat + - Rocky + +# Same as above but includes Fedora +__ad_integration_rh_distros_fedora: "{{ __ad_integration_rh_distros + ['Fedora'] }}" + +# Use this in conditionals to check if distro is Red Hat or clone +__ad_integration_is_rh_distro: "{{ ansible_distribution in __ad_integration_rh_distros }}" + +# Use this in conditionals to check if distro is Red Hat or clone, or Fedora +__ad_integration_is_rh_distro_fedora: "{{ ansible_distribution in __ad_integration_rh_distros_fedora }}" +# END - DO NOT EDIT THIS BLOCK - rh distros variables