Debian Codegraph @

ansible_collections/hetzner/hcloud/tests/integration/targets/subnetwork/tasks/main.yml

raw
1 #
2 # DO NOT EDIT THIS FILE! Please edit the files in tests/integration/common instead.
3 #
4 ---
5 - name: Check if cleanup.yml exists
6 ansible.builtin.stat:
7 path: "{{ role_path }}/tasks/cleanup.yml"
8 register: cleanup_file
9
10 - name: Check if prepare.yml exists
11 ansible.builtin.stat:
12 path: "{{ role_path }}/tasks/prepare.yml"
13 register: prepare_file
14
15 - name: Include cleanup tasks
16 ansible.builtin.include_tasks: "{{ role_path }}/tasks/cleanup.yml"
17 when: cleanup_file.stat.exists
18
19 - name: Include prepare tasks
20 ansible.builtin.include_tasks: "{{ role_path }}/tasks/prepare.yml"
21 when: prepare_file.stat.exists
22
23 - name: Run tests
24 block:
25 - name: Include test tasks
26 ansible.builtin.include_tasks: "{{ role_path }}/tasks/test.yml"
27
28 always:
29 - name: Include cleanup tasks
30 ansible.builtin.include_tasks: "{{ role_path }}/tasks/cleanup.yml"
31 when: cleanup_file.stat.exists