From dab7889715052c9915a3937e231e7954cefe018e Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Wed, 3 Jun 2020 15:05:00 -0400 Subject: [PATCH] Don't try and install content if there aren't any requirements expecting it --- awx/playbooks/project_update.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/playbooks/project_update.yml b/awx/playbooks/project_update.yml index 84b03fa109..cd97d4a014 100644 --- a/awx/playbooks/project_update.yml +++ b/awx/playbooks/project_update.yml @@ -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', '>=')"