2020-05-29 19:33:32 +02:00
|
|
|
---
|
|
|
|
- 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
|
2021-01-05 16:32:23 +01:00
|
|
|
- include_tasks: ./requirements.yml
|
2020-05-29 19:33:32 +02:00
|
|
|
- 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
|
2020-07-30 19:55:29 +02:00
|
|
|
- include_tasks: ./download.yml
|
2020-05-29 19:33:32 +02:00
|
|
|
|
|
|
|
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
|
2021-01-22 00:12:18 +01:00
|
|
|
|
|
|
|
# This gets dragged in as a dependency of git on FreeBSD.
|
|
|
|
# We need to remove it too when done.
|
|
|
|
- name: remove python37 if necessary
|
|
|
|
package:
|
|
|
|
name: python37
|
|
|
|
state: absent
|
|
|
|
when:
|
|
|
|
- git_install is changed
|
|
|
|
- ansible_distribution == 'FreeBSD'
|
|
|
|
- ansible_python.version.major == 2
|