Debian Codegraph @

ansible_collections/theforeman/foreman/tests/test_playbooks/content_upload_ostree.yml

raw symbols SCIP
1 # Needs a system with ostree enabled
2 # foreman-installer --foreman-proxy-content-enable-ostree true
3 ---
4 - hosts: localhost
5 collections:
6 - theforeman.foreman
7 gather_facts: false
8 vars_files:
9 - vars/server.yml
10 tasks:
11 - include_tasks: tasks/organization.yml
12 vars:
13 organization_state: present
14 - include_tasks: tasks/product.yml
15 vars:
16 product_state: present
17 - include_tasks: tasks/repository.yml
18 vars:
19 repository_state: absent
20 repository_name: "Test OStree Repository"
21 repository_content_type: "ostree"
22 - include_tasks: tasks/repository.yml
23 vars:
24 repository_state: present
25 repository_name: "Test OStree Repository"
26 repository_content_type: "ostree"
27
28 - hosts: tests
29 collections:
30 - theforeman.foreman
31 gather_facts: false
32 vars_files:
33 - vars/server.yml
34 tasks:
35
36 - name: upload ostree archive
37 include_tasks: tasks/upload.yml
38 vars:
39 upload_src: "{{ playbook_dir }}/data/fixtures_small_repo.tar"
40 upload_repository: "Test OStree Repository"
41 upload_ostree_repository_name: "small"
42 expected_change: true
43 - name: upload ostree archive again, change due to API limitations
44 include_tasks: tasks/upload.yml
45 vars:
46 upload_src: "{{ playbook_dir }}/data/fixtures_small_repo.tar"
47 upload_repository: "Test OStree Repository"
48 upload_ostree_repository_name: "small"
49 expected_change: true
50
51 - hosts: localhost
52 collections:
53 - theforeman.foreman
54 gather_facts: false
55 vars_files:
56 - vars/server.yml
57 tasks:
58 - include_tasks: tasks/repository.yml
59 vars:
60 repository_state: absent
61 repository_name: "Test OStree Repository"
62 repository_content_type: "ostree"
63 - include_tasks: tasks/product.yml
64 vars:
65 product_state: absent
66 - include_tasks: tasks/organization.yml
67 vars:
68 organization_state: absent
69 ...