Fix deprecated includes

This commit is contained in:
2022-08-30 22:19:06 -05:00
parent 6705256abc
commit cd66cef7ad
45 changed files with 261 additions and 221 deletions

View File

@ -1,8 +1,8 @@
---
- name: gather architecture specific variables
include_vars: "{{ lookup('first_found', possible_files) }}"
ansible.builtin.include_vars: "{{ lookup('first_found', params) }}"
vars:
possible_files:
params:
files:
- "{{ ansible_userspace_architecture }}.yaml"
- "default.yaml"
@ -21,9 +21,9 @@
when: st.stat.exists is defined and st.stat.exists
- name: gather os specific variables
include_vars: "{{ lookup('first_found', possible_files) }}"
ansible.builtin.include_vars: "{{ lookup('first_found', params) }}"
vars:
possible_files:
params:
files:
- "{{ ansible_distribution }}-{{ ansible_distribution_version }}.yaml"
- "{{ ansible_distribution }}.yaml"