mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 16:58:46 -03:30
autogenerate websocket secret
This commit is contained in:
@@ -1,4 +1,10 @@
|
|||||||
---
|
---
|
||||||
|
- name: Generate broadcast websocket secret
|
||||||
|
set_fact:
|
||||||
|
broadcast_websocket_secret: "{{ lookup('password', '/dev/null', length=128) }}"
|
||||||
|
run_once: true
|
||||||
|
no_log: true
|
||||||
|
|
||||||
- fail:
|
- fail:
|
||||||
msg: "Only set one of kubernetes_context or openshift_host"
|
msg: "Only set one of kubernetes_context or openshift_host"
|
||||||
when: openshift_host is defined and kubernetes_context is defined
|
when: openshift_host is defined and kubernetes_context is defined
|
||||||
|
|||||||
@@ -12,3 +12,5 @@ DATABASES = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BROADCAST_WEBSOCKET_SECRET = "{{ broadcast_websocket_secret | b64encode }}"
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
---
|
---
|
||||||
|
- name: Generate broadcast websocket secret
|
||||||
|
set_fact:
|
||||||
|
broadcast_websocket_secret: "{{ lookup('password', '/dev/null', length=128) }}"
|
||||||
|
run_once: true
|
||||||
|
no_log: true
|
||||||
|
|
||||||
- name: Check for existing Postgres data
|
- name: Check for existing Postgres data
|
||||||
stat:
|
stat:
|
||||||
path: "{{ postgres_data_dir }}/pgdata/PG_VERSION"
|
path: "{{ postgres_data_dir }}/pgdata/PG_VERSION"
|
||||||
|
|||||||
@@ -19,3 +19,5 @@ CACHES = {
|
|||||||
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BROADCAST_WEBSOCKET_SECRET = "{{ broadcast_websocket_secret | b64encode }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user