mirror of
https://github.com/ansible/ansible.git
synced 2026-07-28 16:15:12 +02:00
(cherry picked from commit ce84d31)
Co-authored-by: Matt Clay <matt@mystile.com>
This commit is contained in:
co-authored by
Matt Clay
parent
9963ec18e8
commit
b4c6af0ac1
@@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- first_found - Correct the "Include tasks only if one of the files exists, otherwise skip" example.
|
||||
@@ -79,7 +79,7 @@ EXAMPLES = """
|
||||
|
||||
- name: Include tasks only if one of the files exists, otherwise skip
|
||||
ansible.builtin.include_tasks: '{{ tasks_file }}'
|
||||
when: tasks_file != ""
|
||||
when: tasks_file is not none
|
||||
vars:
|
||||
tasks_file: "{{ lookup('ansible.builtin.first_found', files=['tasks.yaml', 'other_tasks.yaml'], errors='ignore') }}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user