Debian Codegraph @

ansible_collections/theforeman/foreman/tests/test_playbooks/operatingsystems_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/operatingsystem.yml
21 vars:
22 operatingsystem_name: "RedHat"
23 operatingsystem_major: "8"
24 operatingsystem_minor: "5"
25 operatingsystem_state: "absent"
26
27 - name: Tests
28 hosts: tests
29 collections:
30 - theforeman.foreman
31 gather_facts: false
32 vars_files:
33 - vars/server.yml
34 roles:
35 - role: operatingsystems
36 vars:
37 foreman_operatingsystems:
38 - name: RedHat
39 major: "8"
40 minor: "5"
41 os_family: Redhat
42 password_hash: "SHA256"
43 default_templates:
44 - template_kind: cloud-init
45 provisioning_template: CloudInit default
46 - template_kind: user_data
47 provisioning_template: UserData open-vm-tools
48
49 - name: Cleanup
50 hosts: localhost
51 collections:
52 - theforeman.foreman
53 gather_facts: false
54 vars_files:
55 - vars/server.yml
56 tasks:
57 - include_tasks: tasks/operatingsystem.yml
58 vars:
59 operatingsystem_name: "RedHat"
60 operatingsystem_major: "8"
61 operatingsystem_minor: "5"
62 operatingsystem_state: "absent"
63 - include_tasks: tasks/organization.yml
64 vars:
65 organization_name: "Test Organization"
66 organization_state: absent
67 - include_tasks: tasks/location.yml
68 vars:
69 location_name: "Test Location"
70 location_state: absent