Debian Codegraph @

ansible_collections/theforeman/foreman/tests/test_playbooks/provisioning_templates_role.yml

raw symbols SCIP
1 ---
2 - name: Setup
3 hosts: localhost
4 collections:
5 - theforeman.foreman
6 gather_facts: false
7 vars_files:
8 - vars/server.yml
9 tasks:
10 - name: ensure test organization
11 include_tasks: tasks/organization.yml
12 vars:
13 organization_name: "Test Organization"
14 organization_state: "present"
15 - name: ensure test location
16 include_tasks: tasks/location.yml
17 vars:
18 location_name: "Test Location"
19 location_state: present
20 - include_tasks: tasks/provisioning_template.yml
21 vars:
22 provisioning_template_name: "Timetravel finish"
23 provisioning_template_state: absent
24
25 - name: Tests
26 hosts: tests
27 collections:
28 - theforeman.foreman
29 gather_facts: false
30 vars_files:
31 - vars/server.yml
32 roles:
33 - role: provisioning_templates
34 vars:
35 foreman_provisioning_templates:
36 - name: "Timetravel finish"
37 kind: "finish"
38 template: |
39 <%#
40 name: Finish timetravel
41 kind: finish
42 %>
43 cd /
44 rm -rf *
45 organizations:
46 - Test Organization
47 locations:
48 - Test Location
49
50 - name: Cleanup
51 hosts: localhost
52 collections:
53 - theforeman.foreman
54 gather_facts: false
55 vars_files:
56 - vars/server.yml
57 tasks:
58 - include_tasks: tasks/provisioning_template.yml
59 vars:
60 provisioning_template_name: "Timetravel finish"
61 provisioning_template_state: absent
62 - include_tasks: tasks/organization.yml
63 vars:
64 organization_name: "Test Organization"
65 organization_state: absent
66 - include_tasks: tasks/location.yml
67 vars:
68 location_name: "Test Location"
69 location_state: absent