ansible.utils/tests/integration/targets/utils_usable_range/tasks/main.yml

16 lines
346 B
YAML

---
- name: Recursively find all test files
ansible.builtin.find:
file_type: file
paths: "{{ role_path }}/tasks"
recurse: false
use_regex: true
patterns:
- "^(?!_|main).+$"
delegate_to: localhost
register: found
- name: Include tasks
ansible.builtin.include_tasks: "{{ item.path }}"
loop: "{{ found.files }}"