Regression in Docker module for 1.9?

71 views
Skip to first unread message

Lyle Dietz

unread,
Mar 31, 2015, 10:02:40 PM3/31/15
to ansible...@googlegroups.com
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

Matt Martz

unread,
Mar 31, 2015, 10:05:47 PM3/31/15
to ansible...@googlegroups.com
You will likely be interested in https://github.com/ansible/ansible-modules-core/pull/1039
--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7985fc3b-202a-4514-a1d9-6d87a7f5ab5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Matt Martz
@sivel
sivel.net

Lyle Dietz

unread,
Mar 31, 2015, 10:13:18 PM3/31/15
to ansible...@googlegroups.com
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.


On Wednesday, 1 April 2015 12:05:47 UTC+10, Matt Martz wrote:
You will likely be interested in https://github.com/ansible/ansible-modules-core/pull/1039

On Tuesday, March 31, 2015, Lyle Dietz <ritte...@gmail.com> wrote:
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 received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages