mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
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:
parent
e0d6b138b0
commit
c0afd67432
@ -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: >
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user