mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 12:20:45 -03:30
Merge pull request #177 from pchauncey/faster
only pause when containers are launched
This commit is contained in:
commit
418acbf218
@ -107,6 +107,7 @@
|
||||
POSTGRES_PASSWORD: "{{ pg_password }}"
|
||||
POSTGRES_DB: "{{ pg_database }}"
|
||||
when: pg_hostname is not defined or pg_hostname == ''
|
||||
register: postgres_container_activate
|
||||
|
||||
- name: Activate rabbitmq container
|
||||
docker_container:
|
||||
@ -115,6 +116,7 @@
|
||||
image: rabbitmq:3
|
||||
env:
|
||||
RABBITMQ_DEFAULT_VHOST: "awx"
|
||||
register: rabbitmq_container_activate
|
||||
|
||||
- name: Activate memcached container
|
||||
docker_container:
|
||||
@ -125,6 +127,7 @@
|
||||
- name: Wait for postgres and rabbitmq to activate
|
||||
pause:
|
||||
seconds: 15
|
||||
when: postgres_container_activate.changed or rabbitmq_container_activate.changed
|
||||
|
||||
- name: Set properties without postgres for awx_web
|
||||
set_fact:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user