Debian Codegraph @

ansible_collections/theforeman/foreman/tests/test_playbooks/repository_sync.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: present
18 repository_url: https://fixtures.pulpproject.org/rpm-signed/
19
20 - hosts: tests
21 collections:
22 - theforeman.foreman
23 gather_facts: false
24 vars_files:
25 - vars/server.yml
26 tasks:
27 - name: sync product
28 include_tasks: tasks/katello_sync.yml
29 - name: sync repository
30 include_tasks: tasks/katello_sync.yml
31 vars:
32 repository: "Test Repository"
33 - name: sync missing repository
34 include_tasks: tasks/katello_sync.yml
35 vars:
36 repository: "Test Repository That Doesn't Exist"
37 expected_fail: true
38 expected_fail_msg: "Found no results while searching for repositories with name"
39
40 - hosts: localhost
41 collections:
42 - theforeman.foreman
43 gather_facts: false
44 vars_files:
45 - vars/server.yml
46 tasks:
47 - include_tasks: tasks/repository.yml
48 vars:
49 repository_state: absent
50 - include_tasks: tasks/product.yml
51 vars:
52 product_state: absent
53 - include_tasks: tasks/organization.yml
54 vars:
55 organization_state: absent
56 ...