Fix with_first_found fail when vars file is missing
This commit is contained in:
parent
b9f00ac858
commit
da8e53aac6
|
@ -17,9 +17,7 @@
|
|||
block:
|
||||
|
||||
- name: Load additional repository settings for CentOS or RedHat 8
|
||||
include_vars: "{{ item }}"
|
||||
with_first_found:
|
||||
- "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
|
||||
include_vars: "{{ ansible_distribution }}-{{ ansible_distribution_major_version }}.yml"
|
||||
|
||||
- name: Override repository settings for CentOS <= 8.2
|
||||
include_vars: "CentOS-8.2.yml"
|
||||
|
|
Reference in New Issue