Added the ability, to set the broadcast_websocket_secret variable.

This is nessesary if you would like to rerun the playbook.

Signed-off-by: JoelKle <34544090+JoelKle@users.noreply.github.com>
This commit is contained in:
JoelKle 2020-05-19 09:26:03 +02:00 committed by Joel Klekottka
parent a74fbd6578
commit caab751215
3 changed files with 7 additions and 0 deletions

View File

@ -117,6 +117,11 @@ create_preload_data=True
# your credentials
secret_key=awxsecret
# By default a broadcast websocket secret will be generated.
# If you would like to *rerun the playbook*, you need to set a unique password.
# Otherwise it would generate a new one every playbook run.
# broadcast_websocket_secret=
# Build AWX with official logos
# Requires cloning awx-logos repo as a sibling of this project.
# Review the trademark guidelines at https://github.com/ansible/awx-logos/blob/master/TRADEMARKS.md

View File

@ -4,6 +4,7 @@
broadcast_websocket_secret: "{{ lookup('password', '/dev/null', length=128) }}"
run_once: true
no_log: true
when: broadcast_websocket_secret is not defined
- fail:
msg: "Only set one of kubernetes_context or openshift_host"

View File

@ -4,6 +4,7 @@
broadcast_websocket_secret: "{{ lookup('password', '/dev/null', length=128) }}"
run_once: true
no_log: true
when: broadcast_websocket_secret is not defined
- import_tasks: upgrade_postgres.yml
when: