diff --git a/roles/ipabackup/tasks/restore.yml b/roles/ipabackup/tasks/restore.yml index 55576c6e..455dea38 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 d49e1cd5..00000000 --- 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 852b838d..00000000 --- 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 d49e1cd5..00000000 --- a/roles/ipabackup/vars/OracleLinux-8.yml +++ /dev/null @@ -1 +0,0 @@ -RedHat-8.yml \ No newline at end of file