diff --git a/roles/ipabackup/tasks/restore.yml b/roles/ipabackup/tasks/restore.yml index 55576c6e4bee67acec4c552c3095d7c262fc2423..455dea38c015d857111607058d8b9e5deabbb7c2 100644 --- a/roles/ipabackup/tasks/restore.yml +++ b/roles/ipabackup/tasks/restore.yml @@ -9,6 +9,13 @@ - "{{ role_path }}/vars/{{ ansible_facts['distribution'] }}-{{ ansible_facts['distribution_version'] }}.yml" - "{{ role_path }}/vars/{{ ansible_facts['distribution'] }}-{{ ansible_facts['distribution_major_version'] }}.yml" - "{{ role_path }}/vars/{{ ansible_facts['distribution'] }}.yml" + # os_family is used as a fallback for distros which are not currently + # supported, but are based on a supported distro family. For example, + # Oracle, Rocky, Alma and Alibaba linux, which are all "RedHat" based. + - "vars/{{ ansible_facts['os_family'] }}-{{ ansible_facts['distribution_version'] }}.yml" + - "vars/{{ ansible_facts['os_family'] }}-{{ ansible_facts['distribution_major_version'] }}.yml" + - "vars/{{ ansible_facts['os_family'] }}.yml" + # If neither distro nor family is supported, try a default configuration. - "{{ role_path }}/vars/default.yml" ### GET SERVICES FROM BACKUP diff --git a/roles/ipabackup/vars/CentOS-8.yml b/roles/ipabackup/vars/CentOS-8.yml deleted file mode 120000 index d49e1cd5933d80e1140d65b1fcd941afebc661dd..0000000000000000000000000000000000000000 --- a/roles/ipabackup/vars/CentOS-8.yml +++ /dev/null @@ -1 +0,0 @@ -RedHat-8.yml \ No newline at end of file diff --git a/roles/ipabackup/vars/OracleLinux-7.yml b/roles/ipabackup/vars/OracleLinux-7.yml deleted file mode 120000 index 852b838dc369fbea945b46c9ab8bccff3cb344e3..0000000000000000000000000000000000000000 --- a/roles/ipabackup/vars/OracleLinux-7.yml +++ /dev/null @@ -1 +0,0 @@ -RedHat-7.yml \ No newline at end of file diff --git a/roles/ipabackup/vars/OracleLinux-8.yml b/roles/ipabackup/vars/OracleLinux-8.yml deleted file mode 120000 index d49e1cd5933d80e1140d65b1fcd941afebc661dd..0000000000000000000000000000000000000000 --- a/roles/ipabackup/vars/OracleLinux-8.yml +++ /dev/null @@ -1 +0,0 @@ -RedHat-8.yml \ No newline at end of file