Fix deprecated includes
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
---
|
||||
- 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"
|
||||
@ -12,9 +12,9 @@
|
||||
- vars
|
||||
|
||||
- name: include os specific tasks
|
||||
include_tasks: "{{ lookup('first_found', possible_files) }}"
|
||||
ansible.builtin.include_tasks: "{{ lookup('first_found', params) }}"
|
||||
vars:
|
||||
possible_files:
|
||||
params:
|
||||
files:
|
||||
- "{{ ansible_distribution }}-{{ ansible_distribution_version }}.yaml"
|
||||
- "{{ ansible_distribution }}.yaml"
|
||||
@ -86,9 +86,9 @@
|
||||
- restic-job.sh
|
||||
|
||||
- name: manage repos
|
||||
include: repo.yaml
|
||||
ansible.builtin.include_tasks: repo.yaml
|
||||
loop: "{{ restic_repos | default([]) }}"
|
||||
|
||||
- name: manage jobs
|
||||
include: job.yaml
|
||||
ansible.builtin.include_tasks: job.yaml
|
||||
loop: "{{ restic_jobs | default([]) }}"
|
||||
|
Reference in New Issue
Block a user