Fix bugs with discovery of collection requirements

Addresses some cases where
  collection requirements do not exist
  collection requirements cannot be evaluated

Consolidate logic for roles and collection installs
This commit is contained in:
AlanCoding
2019-07-25 08:22:32 -04:00
parent cc6413c44c
commit 270bd19dbd
3 changed files with 28 additions and 23 deletions

View File

@@ -147,6 +147,8 @@
args:
chdir: "{{project_path|quote}}/collections"
register: galaxy_collection_result
when: doesCollectionRequirementsExist.stat.exists
changed_when: "'Installing ' in galaxy_collection_result.stdout"
when: collections_enabled|bool
delegate_to: localhost