Hi,
One of my playbooks stopped working with the upgrade to 1.9. It appears that ansible_facts has been removed from the result of running the docker module. I was using this to feed an IP address in to wait_for so I knew when the process in the docker container was accepting connections.
- name: Start elasticsearch container
docker:
name: elasticsearch
image: elasticsearch
volumes_from: elasticsearch-data
ports: - 9200:9200
state: running
register: es_result - name: Wait for elasticsearch to be ready
wait_for:
host: “{{ es_result.ansible_facts.docker_containers[0].NetworkSettings.IPAddress }}”
port: 9200
state: started
I don’t see anything in the documentation about this being removed. Was this supposed to be removed, and if so, is there another way for me to get this information?
Thanks,
Lyle