Debian Codegraph @

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

raw symbols SCIP
1 ---
2 - hosts: localhost
3 collections:
4 - theforeman.foreman
5 gather_facts: false
6 vars_files:
7 - vars/server.yml
8 tasks:
9 - name: Ensure test locations are deleted
10 include_tasks: tasks/location.yml
11 vars:
12 location_name: "{{ item }}"
13 location_state: "absent"
14 loop:
15 - "Test Location 1"
16 - "Test Location 2"
17
18 - hosts: tests
19 collections:
20 - theforeman.foreman
21 gather_facts: false
22 vars_files:
23 - vars/server.yml
24 roles:
25 - role: locations
26 vars:
27 foreman_locations:
28 - name: "Test Location 1"
29 - name: "Test Location 2"
30 description: "2nd location"
31
32 - hosts: localhost
33 collections:
34 - theforeman.foreman
35 gather_facts: false
36 vars_files:
37 - vars/server.yml
38 tasks:
39 - name: Delete the test locations
40 include_tasks: tasks/location.yml
41 vars:
42 location_name: "{{ item }}"
43 location_state: "absent"
44 loop:
45 - "Test Location 1"
46 - "Test Location 2"