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

16 lines
474 B
YAML

- hosts: localhost
vars:
docker_test_image_alpine: quay.io/ansible/docker-test-containers:alpine3.8
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 }}"