Files
offline_kubespray/collection/community/dns/tests/ee/all.yml
ByeonJungHun 360c6eef4a offline 작업
2024-02-19 16:02:29 +09:00

14 lines
387 B
YAML

- hosts: localhost
tasks:
- name: Find all roles
find:
paths:
- "{{ (playbook_dir | default('.')) ~ '/roles' }}"
file_type: directory
depth: 1
register: result
- name: Include all roles
include_role:
name: "{{ item }}"
loop: "{{ result.files | map(attribute='path') | map('regex_replace', '.*/', '') | sort }}"