]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
purge: fix bug on 'wait_for' task 2221/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 29 Nov 2017 10:10:56 +0000 (11:10 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 29 Nov 2017 10:10:56 +0000 (11:10 +0100)
commitaaaf980140832de694ef0ffe3282dabbf0b90081
tree8f67a3da4b249a6360b1e3d65e24ca63e949dd20
parentb449b16edd4f7cafe35b8eaa3b4dcd0a798d2902
purge: fix bug on 'wait_for' task

this task hangs because `{{ inventory_hostname }}` doesn't resolv to an
actual ip address.
Using `hostvars[inventory_hostname]['ansible_default_ipv4']['address']`
should fix this because it will reach the node with its actual IP
address.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
infrastructure-playbooks/purge-cluster.yml