summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/ansible-galaxy-collection-scm/tasks/individual_collection_repo.yml
blob: e51c3a9978e261c88981f0f920a27063119af1ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
- name: Clone a git repository
  git:
    repo: https://github.com/ansible-collections/amazon.aws.git
    dest: '{{ scm_path }}/amazon.aws/'

- name: install
  command: 'ansible-galaxy collection install git+file://{{ scm_path }}/amazon.aws/.git --no-deps'

- name: list installed collections
  command: 'ansible-galaxy collection list'
  register: installed_collections

- assert:
    that:
      - "'amazon.aws' in installed_collections.stdout"

- include_tasks: ./empty_installed_collections.yml
  when: cleanup