From c0afd674320677aa1cf4bc98229fe3300a4a10fd Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 30 Apr 2021 16:06:00 -0400 Subject: [PATCH] Have the project update playbook warn if role/collection syncing is disabled. Make it more clear that a credential is required. --- awx/playbooks/project_update.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/awx/playbooks/project_update.yml b/awx/playbooks/project_update.yml index bf3ee934a8..1c22b4001b 100644 --- a/awx/playbooks/project_update.yml +++ b/awx/playbooks/project_update.yml @@ -156,6 +156,21 @@ name: Install content with ansible-galaxy command if necessary tasks: + - name: Check content sync settings + debug: + msg: "Collection and role syncing disabled. Check the AWX_ROLES_ENABLED and AWX_COLLECTIONS_ENABLED settings and Galaxy credentials on the project's organization." + when: not roles_enabled|bool and not collections_enabled|bool + tags: + - install_roles + - install_collections + + - name: + meta: end_play + when: not roles_enabled|bool and not collections_enabled|bool + tags: + - install_roles + - install_collections + - block: - name: fetch galaxy roles from requirements.(yml/yaml) command: >