mirror of
https://github.com/ansible/awx.git
synced 2026-02-12 15:14:45 -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:
@@ -156,6 +156,21 @@
|
|||||||
name: Install content with ansible-galaxy command if necessary
|
name: Install content with ansible-galaxy command if necessary
|
||||||
tasks:
|
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:
|
- block:
|
||||||
- name: fetch galaxy roles from requirements.(yml/yaml)
|
- name: fetch galaxy roles from requirements.(yml/yaml)
|
||||||
command: >
|
command: >
|
||||||
|
|||||||
Reference in New Issue
Block a user