diff --git a/roles/chrony/tasks/main.yaml b/roles/chrony/tasks/main.yaml index be6e03e..eb43706 100644 --- a/roles/chrony/tasks/main.yaml +++ b/roles/chrony/tasks/main.yaml @@ -1,6 +1,6 @@ --- - name: gather OS specific variables - include_vars: "{{ item }} " + include_vars: "{{ item }}" with_first_found: - "{{ ansible_distribution }}.yaml" - "{{ ansible_os_family }}.yaml" diff --git a/roles/common/tasks/main.yaml b/roles/common/tasks/main.yaml index 8a8ad35..d291315 100644 --- a/roles/common/tasks/main.yaml +++ b/roles/common/tasks/main.yaml @@ -1,6 +1,6 @@ --- - name: gather OS specific variables - include_vars: "{{ item }} " + include_vars: "{{ item }}" with_first_found: - "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yaml" - "{{ ansible_distribution }}.yaml"