Debian Codegraph @

ansible_collections/community/routeros/tests/ee/all.yml

raw
1 ---
2 # Copyright (c) Ansible Project
3 # GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
4 # SPDX-License-Identifier: GPL-3.0-or-later
5
6 - hosts: localhost
7 tasks:
8 - name: Find all roles
9 find:
10 paths:
11 - "{{ (playbook_dir | default('.')) ~ '/roles' }}"
12 file_type: directory
13 depth: 1
14 register: result
15 - name: Include all roles
16 include_role:
17 name: "{{ item }}"
18 loop: "{{ result.files | map(attribute='path') | map('regex_replace', '.*/', '') | sort }}"