]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
purge: fix bug on 'wait_for' task 2222/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 29 Nov 2017 10:10:56 +0000 (11:10 +0100)
committerSébastien Han <seb@redhat.com>
Wed, 29 Nov 2017 13:57:45 +0000 (14:57 +0100)
commitdda64016f5675172976e604cab8d4e3599cb065a
tree9600f1c52450ee829ebda291093142677e29fde3
parentddb2cf91560428b57f3fe8afb4063b8eb5722201
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>
(cherry picked from commit aaaf980140832de694ef0ffe3282dabbf0b90081)
Signed-off-by: Sébastien Han <seb@redhat.com>
infrastructure-playbooks/purge-cluster.yml