fix: fix first_found lookup
Some checks failed
ci/woodpecker/push/docs Pipeline failed
ci/woodpecker/push/notify Pipeline was successful
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
Robert Kaussow 2024-09-25 22:21:26 +02:00
parent c5f25c249c
commit fc14afec55
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -6,14 +6,13 @@
loop: "{{ packages_uninstall_pre + packages_uninstall_pre_extra }}" loop: "{{ packages_uninstall_pre + packages_uninstall_pre_extra }}"
- name: Include OS specific tasks - name: Include OS specific tasks
ansible.builtin.include_tasks: "{{ lookup('first_found', params) }}" ansible.builtin.include_tasks:
vars: file: "{{ item }}"
params: with_first_found:
- paths:
- "tasks"
files: files:
- "{{ ansible_os_family | lower }}.yml" - "{{ ansible_os_family | lower }}.yml"
paths:
- "tasks"
errors: "ignore"
skip: True skip: True
- name: Uninstall packages - name: Uninstall packages