diff --git a/tests/vars/rh_distros_vars.yml b/tests/vars/rh_distros_vars.yml new file mode 100644 index 0000000..4343038 --- /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 +__kdump_rh_distros: + - AlmaLinux + - CentOS + - RedHat + - Rocky + +# Same as above but includes Fedora +__kdump_rh_distros_fedora: "{{ __kdump_rh_distros + ['Fedora'] }}" + +# Use this in conditionals to check if distro is Red Hat or clone +__kdump_is_rh_distro: "{{ ansible_distribution in __kdump_rh_distros }}" + +# Use this in conditionals to check if distro is Red Hat or clone, or Fedora +__kdump_is_rh_distro_fedora: "{{ ansible_distribution in __kdump_rh_distros_fedora }}" diff --git a/vars/AlmaLinux_10.yml b/vars/AlmaLinux_10.yml new file mode 120000 index 0000000..f830d5f --- /dev/null +++ b/vars/AlmaLinux_10.yml @@ -0,0 +1 @@ +RedHat_10.yml \ No newline at end of file diff --git a/vars/CentOS_10.yml b/vars/CentOS_10.yml deleted file mode 100644 index c280a44..0000000 --- a/vars/CentOS_10.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -__kdump_packages: - - grubby - - iproute # for fact gathering for ip facts - - kexec-tools - - kdump-utils - - openssh-clients diff --git a/vars/CentOS_10.yml b/vars/CentOS_10.yml new file mode 120000 index 0000000..f830d5f --- /dev/null +++ b/vars/CentOS_10.yml @@ -0,0 +1 @@ +RedHat_10.yml \ No newline at end of file diff --git a/vars/Rocky_10.yml b/vars/Rocky_10.yml new file mode 120000 index 0000000..f830d5f --- /dev/null +++ b/vars/Rocky_10.yml @@ -0,0 +1 @@ +RedHat_10.yml \ No newline at end of file diff --git a/vars/main.yml b/vars/main.yml index 6782ff5..33a2af2 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -25,3 +25,21 @@ __kdump_required_facts: # the 'gather_subset' parameter of the 'setup' module __kdump_required_facts_subsets: "{{ ['!all', '!min'] + __kdump_required_facts }}" + +# BEGIN - DO NOT EDIT THIS BLOCK - rh distros variables +# Ansible distribution identifiers that the role treats like RHEL +__kdump_rh_distros: + - AlmaLinux + - CentOS + - RedHat + - Rocky + +# Same as above but includes Fedora +__kdump_rh_distros_fedora: "{{ __kdump_rh_distros + ['Fedora'] }}" + +# Use this in conditionals to check if distro is Red Hat or clone +__kdump_is_rh_distro: "{{ ansible_distribution in __kdump_rh_distros }}" + +# Use this in conditionals to check if distro is Red Hat or clone, or Fedora +__kdump_is_rh_distro_fedora: "{{ ansible_distribution in __kdump_rh_distros_fedora }}" +# END - DO NOT EDIT THIS BLOCK - rh distros variables