Debian Codegraph @

ansible_collections/theforeman/foreman/tests/test_playbooks/templates_import.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/provisioning_template.yml
10 vars:
11 provisioning_template_name: "fam_tsync_test_Kickstart default"
12 provisioning_template_kind: provision
13 provisioning_template_state: absent
14 - include_tasks: tasks/organization.yml
15 vars:
16 organization_name: "Test Organization"
17 organization_state: present
18 - include_tasks: tasks/location.yml
19 vars:
20 location_name: "Test Location"
21 location_state: present
22
23 - hosts: tests
24 collections:
25 - theforeman.foreman
26 gather_facts: false
27 vars_files:
28 - vars/server.yml
29 - vars/templates_import.yml
30 tasks:
31 - include_tasks: tasks/templates_import.yml
32 vars:
33 templates_import_prefix: "fam_tsync_test_"
34 templates_import_filter: "^fam_tsync_test_Kickstart default$"
35 expected_change: true
36 - include_tasks: tasks/templates_import.yml
37 vars:
38 templates_import_prefix: "fam_tsync_test_"
39 templates_import_filter: "^fam_tsync_test_Kickstart default$"
40 expected_change: false
41 - include_tasks: tasks/provisioning_template.yml
42 vars:
43 provisioning_template_name: "fam_tsync_test_Kickstart default"
44 provisioning_template_template: "Modified Kickstart default provisioning template"
45 provisioning_template_state: present
46 provisioning_template_kind: provision
47 provisioning_template_locations: '{{ omit }}'
48 provisioning_template_organizations: '{{ omit }}'
49 expected_change: true
50 - include_tasks: tasks/templates_import.yml
51 vars:
52 templates_import_prefix: "fam_tsync_test_"
53 templates_import_filter: "^fam_tsync_test_Kickstart default$"
54 expected_change: true
55 - include_tasks: tasks/templates_import.yml
56 vars:
57 templates_import_prefix: "fam_tsync_test_"
58 templates_import_filter: "^fam_tsync_test_Kickstart default$"
59 expected_change: false
60 - include_tasks: tasks/templates_import.yml
61 vars:
62 templates_import_prefix: "fam_tsync_test_"
63 templates_import_filter: "^fam_tsync_test_Kickstart default$"
64 templates_import_locations:
65 - "Test Location"
66 templates_import_organizations:
67 - "Test Organization"
68 # This won't pass assertion until https://projects.theforeman.org/issues/29534 is resolved
69 # setting to false for the time being
70 # expected_change: true
71 expected_change: false
72 - include_tasks: tasks/templates_import.yml
73 vars:
74 templates_import_prefix: "fam_tsync_test_"
75 templates_import_filter: "^fam_tsync_test_Kickstart default$"
76 templates_import_locations:
77 - "Test Location"
78 templates_import_organizations:
79 - "Test Organization"
80 expected_change: false
81
82 - hosts: localhost
83 collections:
84 - theforeman.foreman
85 gather_facts: false
86 vars_files:
87 - vars/server.yml
88 tasks:
89 - include_tasks: tasks/provisioning_template.yml
90 vars:
91 provisioning_template_name: "fam_tsync_test_Kickstart default"
92 provisioning_template_kind: provision
93 provisioning_template_state: absent
94 - include_tasks: tasks/organization.yml
95 vars:
96 organization_name: "Test Organization"
97 organization_state: absent
98 - include_tasks: tasks/location.yml
99 vars:
100 location_name: "Test Location"
101 location_state: absent
102 ...