Debian Codegraph @

test/integration/targets/ansible-galaxy-collection-scm/tasks/scm_dependency.yml

raw
1 - name: test installing one collection that has a SCM dep with --no-deps
2 command: 'ansible-galaxy collection install git+file://{{ test_repo_path }}/.git#/collection_1/ --no-deps'
3
4 - name: list installed collections
5 command: 'ansible-galaxy collection list'
6 register: installed_collections
7
8 - assert:
9 that:
10 - "'ansible_test.collection_1' in installed_collections.stdout"
11 - "'ansible_test.collection_2' not in installed_collections.stdout"
12
13 - name: remove collections to test installing with the dependency
14 include_tasks: ./empty_installed_collections.yml
15
16 - name: test installing one collection that has a SCM dep
17 command: 'ansible-galaxy collection install git+file://{{ test_repo_path }}/.git#/collection_1/'
18
19 - name: list installed collections
20 command: 'ansible-galaxy collection list'
21 register: installed_collections
22
23 - assert:
24 that:
25 - "'ansible_test.collection_1' in installed_collections.stdout"
26 - "'ansible_test.collection_2' in installed_collections.stdout"
27
28 - include_tasks: ./empty_installed_collections.yml
29 when: cleanup