Debian Codegraph @

ansible_collections/theforeman/foreman/tests/test_playbooks/subscription_manifest.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/subscription_manifest.yml
13 vars:
14 manifest_state: absent
15
16 - hosts: tests
17 collections:
18 - theforeman.foreman
19 gather_facts: false
20 vars_files:
21 - vars/server.yml
22 tasks:
23 - name: "import manifest"
24 include_tasks: tasks/subscription_manifest.yml
25 vars:
26 manifest_path: "{{ subscription_manifest_path }}"
27 manifest_state: "present"
28 expected_change: true
29 - name: "import manifest again, no change"
30 include_tasks: tasks/subscription_manifest.yml
31 vars:
32 manifest_path: "{{ subscription_manifest_path }}"
33 manifest_state: "present"
34 expected_change: false
35 - name: "update url"
36 include_tasks: tasks/subscription_manifest.yml
37 vars:
38 manifest_path: "{{ subscription_manifest_path }}"
39 manifest_state: "present"
40 manifest_repository_url: "http://cdn.example.com"
41 expected_change: true
42 - name: "update url again, no change"
43 include_tasks: tasks/subscription_manifest.yml
44 vars:
45 manifest_path: "{{ subscription_manifest_path }}"
46 manifest_state: "present"
47 manifest_repository_url: "http://cdn.example.com"
48 expected_change: false
49 # the manifest we provide in localhost cannot be refreshed because it's been deleted from the portal
50 # if you want to test manifest_state: "refreshed", you will have to provide an own manifest
51 # please don't record/commit the result, as the manifest allows access to your portal account
52 # - name: "refresh manifest"
53 # include_tasks: tasks/subscription_manifest.yml
54 # vars:
55 # manifest_state: "refreshed"
56 # expected_change: true
57 - name: "drop manifest"
58 include_tasks: tasks/subscription_manifest.yml
59 vars:
60 manifest_state: "absent"
61 expected_change: true
62 - name: "drop manifest again, no change"
63 include_tasks: tasks/subscription_manifest.yml
64 vars:
65 manifest_state: "absent"
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 tasks:
75 - include_tasks: tasks/organization.yml
76 vars:
77 organization_state: absent
78 ...