Debian Codegraph @

ansible_collections/theforeman/foreman/tests/test_playbooks/content_upload.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/product.yml
13 vars:
14 product_state: present
15 - include_tasks: tasks/repository.yml
16 vars:
17 repository_state: absent
18 - include_tasks: tasks/repository.yml
19 vars:
20 repository_state: present
21 - include_tasks: tasks/repository.yml
22 vars:
23 repository_state: absent
24 repository_name: "Test File Repository"
25 repository_content_type: "file"
26 - include_tasks: tasks/repository.yml
27 vars:
28 repository_state: present
29 repository_name: "Test File Repository"
30 repository_content_type: "file"
31
32 - hosts: tests
33 collections:
34 - theforeman.foreman
35 gather_facts: false
36 vars_files:
37 - vars/server.yml
38 tasks:
39 - name: upload RPM
40 include_tasks: tasks/upload.yml
41 vars:
42 expected_change: true
43 - name: upload RPM again, no change
44 include_tasks: tasks/upload.yml
45 vars:
46 expected_change: false
47
48 - name: upload SRPM
49 include_tasks: tasks/upload.yml
50 vars:
51 upload_src: "{{ playbook_dir }}/data/test-srpm01-1.0-1.src.rpm"
52 expected_change: true
53 - name: upload SRPM again, no change
54 include_tasks: tasks/upload.yml
55 vars:
56 upload_src: "{{ playbook_dir }}/data/test-srpm01-1.0-1.src.rpm"
57 expected_change: false
58
59 - name: upload File
60 include_tasks: tasks/upload.yml
61 vars:
62 upload_src: "{{ playbook_dir }}/data/file_repo_test.txt"
63 upload_repository: "Test File Repository"
64 expected_change: true
65 - name: upload File again, no change
66 include_tasks: tasks/upload.yml
67 vars:
68 upload_src: "{{ playbook_dir }}/data/file_repo_test.txt"
69 upload_repository: "Test File Repository"
70 expected_change: false
71 - name: upload Large File
72 include_tasks: tasks/upload.yml
73 vars:
74 upload_src: "{{ playbook_dir }}/data/large_file_repo.iso"
75 upload_repository: "Test File Repository"
76 expected_change: true
77 - name: upload File again, no change
78 include_tasks: tasks/upload.yml
79 vars:
80 upload_src: "{{ playbook_dir }}/data/large_file_repo.iso"
81 upload_repository: "Test File Repository"
82 expected_change: false
83
84
85 - hosts: localhost
86 collections:
87 - theforeman.foreman
88 gather_facts: false
89 vars_files:
90 - vars/server.yml
91 tasks:
92 - include_tasks: tasks/repository.yml
93 vars:
94 repository_state: absent
95 - include_tasks: tasks/repository.yml
96 vars:
97 repository_state: absent
98 repository_name: "Test File Repository"
99 repository_content_type: "file"
100 - include_tasks: tasks/product.yml
101 vars:
102 product_state: absent
103 - include_tasks: tasks/organization.yml
104 vars:
105 organization_state: absent
106 ...