Debian Codegraph @

ansible_collections/theforeman/foreman/tests/test_playbooks/compute_profiles_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 - vars/compute_profile.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 - name: ensure operating system
21 include_tasks: tasks/operatingsystem.yml
22 vars:
23 operatingsystem_name: "RedHat-8.4"
24 operatingsystem_major: "8"
25 operatingsystem_family: Redhat
26 operatingsystem_state: present
27 - name: ensure compute resource
28 include_tasks: tasks/compute_resource.yml
29 vars:
30 compute_resource_name: "libvirt"
31 compute_resource_organizations:
32 - Test Organization
33 compute_resource_locations:
34 - Test Location
35 compute_resource_provider: 'libvirt'
36 compute_resource_provider_params: "{{ libvirt.compute_resource.params }}"
37 compute_resource_state: present
38
39 - hosts: tests
40 collections:
41 - theforeman.foreman
42 gather_facts: false
43 vars_files:
44 - vars/server.yml
45 roles:
46 - role: compute_profiles
47 vars:
48 foreman_organization: "Test Organization"
49 foreman_compute_profiles:
50 - name: "app-small"
51 compute_attributes:
52 - compute_resource: "libvirt"
53 vm_attrs:
54 cpus: 1
55 memory: 2147483648
56 nics_attributes:
57 0:
58 type: bridge
59 bridge: ""
60 model: virtio
61 volumes_attributes:
62 0:
63 pool_name: default
64 capacity: 10G
65 allocation: 0G
66 format_type: raw
67 state: present
68 expected_change: true
69
70 - hosts: localhost
71 collections:
72 - theforeman.foreman
73 gather_facts: false
74 vars_files:
75 - vars/server.yml
76 tasks:
77 - include_tasks: tasks/organization.yml
78 vars:
79 organization_name: "Test Organization"
80 organization_state: absent
81 - include_tasks: tasks/location.yml
82 vars:
83 location_name: "Test Location"
84 location_state: absent
85 - include_tasks: tasks/operatingsystem.yml
86 vars:
87 operatingsystem_name: "RedHat-8.4"
88 operatingsystem_state: absent
89 - include_tasks: tasks/compute_resource.yml
90 vars:
91 compute_resource_name: "libvirt"
92 compute_resource_state: absent