fix: fix first_found lookup
This commit is contained in:
parent
c5f25c249c
commit
fc14afec55
@ -6,14 +6,13 @@
|
||||
loop: "{{ packages_uninstall_pre + packages_uninstall_pre_extra }}"
|
||||
|
||||
- name: Include OS specific tasks
|
||||
ansible.builtin.include_tasks: "{{ lookup('first_found', params) }}"
|
||||
vars:
|
||||
params:
|
||||
ansible.builtin.include_tasks:
|
||||
file: "{{ item }}"
|
||||
with_first_found:
|
||||
- paths:
|
||||
- "tasks"
|
||||
files:
|
||||
- "{{ ansible_os_family | lower }}.yml"
|
||||
paths:
|
||||
- "tasks"
|
||||
errors: "ignore"
|
||||
skip: True
|
||||
|
||||
- name: Uninstall packages
|
||||
|
Loading…
Reference in New Issue
Block a user