Don't try and install content if there aren't any requirements expecting it

This commit is contained in:
Bill Nottingham 2020-06-03 15:05:00 -04:00 committed by AlanCoding
parent 95e69124af
commit dab7889715
No known key found for this signature in database
GPG Key ID: D0E673F5E7053218

View File

@ -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', '>=')"