Debian Codegraph @

ansible_collections/community/crypto/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: Show Python info
9 ansible.builtin.debug:
10 var: ansible_python
11
12 - name: Register cryptography version
13 ansible.builtin.command: "{{ ansible_python.executable }} -c 'import cryptography; print(cryptography.__version__)'"
14 register: cryptography_version
15
16 - name: Determine output directory
17 ansible.builtin.set_fact:
18 output_path: "{{ 'output-%0x' % ((2**32) | random) }}"
19
20 - name: Find all roles
21 ansible.builtin.find:
22 paths:
23 - "{{ (playbook_dir | default('.')) ~ '/roles' }}"
24 file_type: directory
25 depth: 1
26 register: result
27
28 - name: Create output directory
29 ansible.builtin.file:
30 path: "{{ output_path }}"
31 state: directory
32
33 - block:
34 - name: Include all roles
35 ansible.builtin.include_role:
36 name: "{{ item }}"
37 loop: "{{ result.files | map(attribute='path') | map('regex_replace', '.*/', '') | sort }}"
38
39 always:
40 - name: Remove output directory
41 ansible.builtin.file:
42 path: "{{ output_path }}"
43 state: absent