diff options
author | Egor Tensin <egor@tensin.name> | 2024-03-17 15:26:51 +0100 |
---|---|---|
committer | Egor Tensin <egor@tensin.name> | 2024-03-17 15:26:58 +0100 |
commit | 45d559454357adb56a21743d8ab958c30a3ab847 (patch) | |
tree | 5a52d490a3f35f4a2975d091d683107588d20dec /roles/ppa/tasks/main.yml | |
parent | v2.0.4 (diff) | |
download | infra-ansible-45d559454357adb56a21743d8ab958c30a3ab847.tar.gz infra-ansible-45d559454357adb56a21743d8ab958c30a3ab847.zip |
make the mechanism of inclusion of platform-specific vars more uniform
Diffstat (limited to 'roles/ppa/tasks/main.yml')
-rw-r--r-- | roles/ppa/tasks/main.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/ppa/tasks/main.yml b/roles/ppa/tasks/main.yml index 4a86ced..083acdd 100644 --- a/roles/ppa/tasks/main.yml +++ b/roles/ppa/tasks/main.yml @@ -10,10 +10,11 @@ ansible.builtin.include_vars: "{{ __ppa_vars_file }}" loop: - "{{ ansible_facts['os_family'] }}.yml" + - "{{ ansible_facts['distribution'] }}.yml" - "{{ ansible_facts['distribution'] }}_{{ ansible_facts['distribution_major_version'] }}.yml" vars: __ppa_vars_file: "{{ role_path }}/vars/{{ item }}" - when: __ppa_vars_file is file + when: __ppa_vars_file is exists - name: Set up PPA repository ansible.builtin.include_role: |