e40889e711
* Enable installing collections from git repositories * Add tests for installing individual and multiple collections from git repositories * Test to make sure recursive dependencies with different syntax are deduplicated * Add documentation * add a changelog * Skip Python 2.6 * Only fail if no collections are located in a git repository Add support for a 'type' key for collections in requirement.yml files. Update the changelog and document the supported keys and allowed values for the type. Add a note that the collection(s) in the repo must contain a galaxy.yml * Add a warning about embedding credentials in SCM URLs * Update with review suggestions * suppress sanity compile failure for Python 2.6
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
---
|
|
- name: set the temp test directory
|
|
set_fact:
|
|
galaxy_dir: "{{ remote_tmp_dir }}/galaxy"
|
|
|
|
- name: Test installing collections from git repositories
|
|
environment:
|
|
ANSIBLE_COLLECTIONS_PATHS: '{{ galaxy_dir }}'
|
|
vars:
|
|
cleanup: True
|
|
galaxy_dir: "{{ galaxy_dir }}"
|
|
block:
|
|
|
|
- include_tasks: ./setup.yml
|
|
- include_tasks: ./individual_collection_repo.yml
|
|
- include_tasks: ./setup_multi_collection_repo.yml
|
|
- include_tasks: ./multi_collection_repo_all.yml
|
|
- include_tasks: ./scm_dependency.yml
|
|
vars:
|
|
cleanup: False
|
|
- include_tasks: ./reinstalling.yml
|
|
- include_tasks: ./multi_collection_repo_individual.yml
|
|
- include_tasks: ./setup_recursive_scm_dependency.yml
|
|
- include_tasks: ./scm_dependency_deduplication.yml
|
|
|
|
always:
|
|
|
|
- name: Remove the directories for installing collections and git repositories
|
|
file:
|
|
path: '{{ item }}'
|
|
state: absent
|
|
loop:
|
|
- '{{ galaxy_dir }}/ansible_collections'
|
|
- '{{ galaxy_dir }}/development'
|
|
|
|
- name: remove git
|
|
package:
|
|
name: git
|
|
state: absent
|
|
when: git_install is changed
|