Regression in Docker module for 1.9?

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

You will likely be interested in https://github.com/ansible/ansible-modules-core/pull/1039

Just what I was after. I managed to find a copy of the 1.8.4 deb on another PC, so I’ll use that until this patch is released.

Thanks.