Debian Codegraph @

ansible_collections/theforeman/foreman/tests/test_playbooks/compute_resources_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 organization
10 include_tasks: tasks/organization.yml
11 vars:
12 organization_name: "Test Organization"
13 organization_state: "present"
14 - name: ensure test location
15 include_tasks: tasks/location.yml
16 vars:
17 location_name: "Test Location"
18 location_state: present
19 - name: ensure operating system
20 include_tasks: tasks/operatingsystem.yml
21 vars:
22 operatingsystem_name: "RedHat-8.4"
23 operatingsystem_major: "8"
24 operatingsystem_family: Redhat
25 operatingsystem_state: present
26
27 - hosts: tests
28 collections:
29 - theforeman.foreman
30 gather_facts: false
31 vars_files:
32 - vars/server.yml
33 - vars/compute_profile.yml
34 roles:
35 - role: compute_resources
36 vars:
37 foreman_organization: "Test Organization"
38 foreman_compute_resources:
39 - name: "libvirt-cr01"
40 description: 'Libvirt compute resource'
41 organizations:
42 - Test Organization
43 locations:
44 - Test Location
45 provider: 'libvirt'
46 provider_params: "{{ libvirt.compute_resource.params }}"
47 images:
48 - name: "RHEL-8.4"
49 operatingsystem: "RedHat-8.4"
50 architecture: "x86_64"
51 user_data: true
52 image_username: "root"
53 image_password: "changeme"
54 uuid: "{{ libvirt.compute_resource.image_uuid }}"
55 state: present
56 expected_change: true
57
58 - hosts: localhost
59 collections:
60 - theforeman.foreman
61 gather_facts: false
62 vars_files:
63 - vars/server.yml
64 tasks:
65 - include_tasks: tasks/organization.yml
66 vars:
67 organization_name: "Test Organization"
68 organization_state: absent
69 - include_tasks: tasks/location.yml
70 vars:
71 location_name: "Test Location"
72 location_state: absent