mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
582 B
YAML
21 lines
582 B
YAML
5 years ago
|
- name: Clone a git repository
|
||
|
git:
|
||
|
repo: https://github.com/ansible-collections/amazon.aws.git
|
||
|
dest: '{{ galaxy_dir }}/development/amazon.aws/'
|
||
|
|
||
|
- name: install
|
||
|
command: 'ansible-galaxy collection install git+file://{{galaxy_dir }}/development/amazon.aws/.git'
|
||
|
args:
|
||
|
chdir: '{{ galaxy_dir }}/development'
|
||
|
|
||
|
- 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
|