Skip to content

Instantly share code, notes, and snippets.

@till
Created January 16, 2019 12:14
Show Gist options
  • Save till/43b0b64aa682dcce83d154409b361132 to your computer and use it in GitHub Desktop.
Save till/43b0b64aa682dcce83d154409b361132 to your computer and use it in GitHub Desktop.
---
# assume this is preceeded by the docker_container module above
- name: Get container IP
set_fact:
container_ip: "{{ my_service_status.ansible_facts.docker_container.NetworkSettings.IPAddress }}"
- name: Check container
wait_for:
host: "{{ container_ip }}"
port: 31337
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment