mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 16:58:46 -03:30
Don't try and install content if there aren't any requirements expecting it
This commit is contained in:
committed by
AlanCoding
parent
95e69124af
commit
dab7889715
@@ -138,7 +138,7 @@
|
||||
synchronize:
|
||||
src: "{{ cache_dir }}/requirements_roles"
|
||||
dest: "{{ roles_destination }}"
|
||||
when: roles_destination is defined
|
||||
when: roles_destination is defined and doesRequirementsExist.stat.exists
|
||||
|
||||
when: roles_enabled|bool
|
||||
tags:
|
||||
@@ -166,7 +166,7 @@
|
||||
synchronize:
|
||||
src: "{{ cache_dir }}/requirements_collections"
|
||||
dest: "{{ collections_destination }}"
|
||||
when: collections_destination is defined
|
||||
when: collections_destination is defined and doesCollectionRequirementsExist.stat.exists
|
||||
|
||||
when:
|
||||
- "ansible_version.full is version_compare('2.8', '>=')"
|
||||
|
||||
Reference in New Issue
Block a user