ansible-playbook couchdb.yml
ansible-playbook -i environments/local initdb.yml
ansible-playbook -i environments/local wipe.yml
ansible-playbook -i environments/local apigateway.yml
Ansible playbook should finish
Stuck at this point:
TASK [redis : wait until redis is up and running] ***********
Even though docker ps reports redis as running
nc command kept the connection open upon successful connection to port 6379, thus unable to register to result. My workaround is to add '-q 2' parameters to nc, in so that nc will close the connection in 2 seconds. Like this :
action: shell (echo PING; sleep 1) | nc -q 2 {{ ansible_host }} {{ redis.port }}
Most helpful comment
nc command kept the connection open upon successful connection to port 6379, thus unable to register to result. My workaround is to add '-q 2' parameters to nc, in so that nc will close the connection in 2 seconds. Like this :
action: shell (echo PING; sleep 1) | nc -q 2 {{ ansible_host }} {{ redis.port }}