2
0
Fork 0

Fix with_first_found fail when vars file is missing

This commit is contained in:
Mathieu Jourdan 2021-06-16 09:20:40 +02:00
parent b9f00ac858
commit da8e53aac6
1 changed files with 1 additions and 3 deletions

View File

@ -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"