Have the project update playbook warn if role/collection syncing is disabled.

Make it more clear that a credential is required.
This commit is contained in:
Bill Nottingham 2021-04-30 16:06:00 -04:00
parent e0d6b138b0
commit c0afd67432

View File

@ -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: >