diff --git a/.ostree/packages-runtime-CentOS-10.txt b/.ostree/packages-runtime-CentOS-10.txt new file mode 100644 index 0000000..25d8374 --- /dev/null +++ b/.ostree/packages-runtime-CentOS-10.txt @@ -0,0 +1 @@ +kdump-utils diff --git a/.ostree/packages-runtime-RedHat-10.txt b/.ostree/packages-runtime-RedHat-10.txt new file mode 100644 index 0000000..25d8374 --- /dev/null +++ b/.ostree/packages-runtime-RedHat-10.txt @@ -0,0 +1 @@ +kdump-utils diff --git a/tasks/set_vars.yml b/tasks/set_vars.yml index a0979d4..79e2a34 100644 --- a/tasks/set_vars.yml +++ b/tasks/set_vars.yml @@ -16,3 +16,18 @@ - name: Set flag to indicate system is ostree set_fact: __kdump_is_ostree: "{{ __ostree_booted_stat.stat.exists }}" + +- name: Set platform/version specific variables + include_vars: "{{ __vars_file }}" + loop: + - "{{ ansible_facts['os_family'] }}.yml" + - "{{ ansible_facts['distribution'] }}.yml" + - >- + {{ ansible_facts['distribution'] ~ '_' ~ + ansible_facts['distribution_major_version'] }}.yml + - >- + {{ ansible_facts['distribution'] ~ '_' ~ + ansible_facts['distribution_version'] }}.yml + vars: + __vars_file: "{{ role_path }}/vars/{{ item }}" + when: __vars_file is file diff --git a/vars/CentOS_10.yml b/vars/CentOS_10.yml new file mode 100644 index 0000000..c280a44 --- /dev/null +++ b/vars/CentOS_10.yml @@ -0,0 +1,7 @@ +--- +__kdump_packages: + - grubby + - iproute # for fact gathering for ip facts + - kexec-tools + - kdump-utils + - openssh-clients diff --git a/vars/RedHat_10.yml b/vars/RedHat_10.yml new file mode 100644 index 0000000..c280a44 --- /dev/null +++ b/vars/RedHat_10.yml @@ -0,0 +1,7 @@ +--- +__kdump_packages: + - grubby + - iproute # for fact gathering for ip facts + - kexec-tools + - kdump-utils + - openssh-clients