mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
Switch to using ansible wait_for instead of sleep
In the startup script for docker-compose
This commit is contained in:
parent
7263367c6d
commit
f61a01b504
@ -1,7 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
# We need to give the databases enough time to start up (switch to using ansible's wait_for here)
|
||||
sleep 20
|
||||
# Wait for the databases to come up
|
||||
ansible -i "127.0.0.1," -c local -v -m wait_for -a "host=postgres port=5432" all
|
||||
ansible -i "127.0.0.1," -c local -v -m wait_for -a "host=redis port=6379" all
|
||||
ansible -i "127.0.0.1," -c local -v -m wait_for -a "host=mongo port=27017" all
|
||||
|
||||
# In case Tower in the container wants to connect to itself, use "docker exec" to attach to the container otherwise
|
||||
/etc/init.d/ssh start
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user