Debian Codegraph @

ansible_collections/theforeman/foreman/tests/test_playbooks/lifecycle_environment.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 - include_tasks: tasks/organization.yml
10 vars:
11 organization_state: present
12 - include_tasks: tasks/lifecycle_environment.yml
13 vars:
14 lifecycle_environment_state: absent
15 lifecycle_environment_name: "{{ item }}"
16 lifecycle_environment_label:
17 loop:
18 - Production
19 - Test
20 - Dev
21
22 - hosts: tests
23 collections:
24 - theforeman.foreman
25 gather_facts: false
26 vars_files:
27 - vars/server.yml
28 tasks:
29 - include_tasks: tasks/lifecycle_environment.yml
30 vars:
31 lifecycle_environment_state: present
32 lifecycle_environment_label: "dev"
33 lifecycle_environment_description: "The dev environment"
34 expected_change: true
35 - include_tasks: tasks/lifecycle_environment.yml
36 vars:
37 lifecycle_environment_state: present
38 expected_change: false
39 - include_tasks: tasks/lifecycle_environment.yml
40 vars:
41 lifecycle_environment_state: present
42 lifecycle_environment_name: "Test"
43 lifecycle_environment_label: "test"
44 lifecycle_environment_prior: "Dev"
45 lifecycle_environment_description: "The test environment"
46 expected_change: true
47 - include_tasks: tasks/lifecycle_environment.yml
48 vars:
49 lifecycle_environment_state: present
50 lifecycle_environment_name: "Test"
51 lifecycle_environment_label: "test"
52 lifecycle_environment_prior: "Dev"
53 expected_change: false
54 - include_tasks: tasks/lifecycle_environment.yml
55 vars:
56 lifecycle_environment_state: present
57 lifecycle_environment_name: "Production"
58 lifecycle_environment_label: "production"
59 lifecycle_environment_prior: "Test"
60 lifecycle_environment_description: "The prod environment"
61 expected_change: true
62 - include_tasks: tasks/lifecycle_environment.yml
63 vars:
64 lifecycle_environment_state: present
65 lifecycle_environment_name: "Test"
66 lifecycle_environment_description: "The new test environment"
67 expected_change: true
68 - include_tasks: tasks/lifecycle_environment.yml
69 vars:
70 lifecycle_environment_state: absent
71 lifecycle_environment_name: "Production"
72 expected_change: true
73 - include_tasks: tasks/lifecycle_environment.yml
74 vars:
75 lifecycle_environment_state: absent
76 lifecycle_environment_name: "Test"
77 expected_change: true
78 - include_tasks: tasks/lifecycle_environment.yml
79 vars:
80 lifecycle_environment_state: absent
81 lifecycle_environment_name: "Test"
82 expected_change: false
83 - include_tasks: tasks/lifecycle_environment.yml
84 vars:
85 lifecycle_environment_state: absent
86 lifecycle_environment_name: "Dev"
87 expected_change: true
88 - include_tasks: tasks/lifecycle_environment.yml
89 vars:
90 lifecycle_environment_state: absent
91 lifecycle_environment_name: "Dev"
92 expected_change: false
93
94 - hosts: localhost
95 collections:
96 - theforeman.foreman
97 gather_facts: false
98 vars_files:
99 - vars/server.yml
100 tasks:
101 - include_tasks: tasks/lifecycle_environment.yml
102 vars:
103 lifecycle_environment_state: absent
104 lifecycle_environment_name: "{{ item }}"
105 loop:
106 - Production
107 - Test
108 - Dev
109 - include_tasks: tasks/organization.yml
110 vars:
111 organization_state: absent
112 ...