Debian Codegraph @

ansible_collections/theforeman/foreman/tests/test_playbooks/compute_attribute.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 - include_tasks: tasks/organization.yml
11 vars:
12 organization_state: present
13 - include_tasks: tasks/location.yml
14 vars:
15 location_state: present
16 - include_tasks: tasks/compute_profile.yml
17 vars:
18 compute_profile_state: present
19 - include_tasks: tasks/compute_resource.yml
20 vars:
21 compute_resource_organizations: "{{ libvirt.compute_resource.organizations }}"
22 compute_resource_locations: "{{ libvirt.compute_resource.locations }}"
23 compute_resource_provider: 'libvirt'
24 compute_resource_provider_params: "{{ libvirt.compute_resource.params }}"
25 compute_resource_state: present
26
27 - hosts: tests
28 collections:
29 - theforeman.foreman
30 gather_facts: false
31 tasks:
32 - name: Load server config
33 include_vars:
34 file: vars/server.yml
35
36 - include_tasks: tasks/compute_attribute.yml
37 vars:
38 vm_attrs:
39 memory: 2147483648
40 cpus: 2
41 compute_attribute_state: present
42 expected_change: true
43
44 - include_tasks: tasks/compute_attribute.yml
45 vars:
46 vm_attrs:
47 memory: 2147483648
48 cpus: 2
49 compute_attribute_state: present
50 expected_change: false
51
52 - include_tasks: tasks/compute_attribute.yml
53 vars:
54 vm_attrs:
55 memory_mb: 1073741824
56 cpu: 1
57 compute_attribute_state: present
58 expected_change: true
59
60 - include_tasks: tasks/compute_attribute.yml
61 vars:
62 vm_attrs:
63 memory_mb: 1073741824
64 cpu: 1
65 compute_attribute_state: present
66 expected_change: false
67
68 - hosts: localhost
69 collections:
70 - theforeman.foreman
71 gather_facts: false
72 vars_files:
73 - vars/server.yml
74 - vars/compute_profile.yml
75 tasks:
76 - include_tasks: tasks/compute_profile.yml
77 vars:
78 compute_profile_state: absent
79 - include_tasks: tasks/compute_resource.yml
80 vars:
81 compute_resource_state: absent
82 - include_tasks: tasks/location.yml
83 vars:
84 location_state: absent
85 - include_tasks: tasks/organization.yml
86 vars:
87 organization_state: absent
88 ...