]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
add-osd: gather facts in second part of playbook
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 4 Mar 2019 08:23:00 +0000 (09:23 +0100)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Mon, 4 Mar 2019 15:48:44 +0000 (15:48 +0000)
commit4dd46ec396dc3dd9bb7fb752331f44038ff9022c
tree858288ff3719a3646b58149f5d4d47ce90a32efa
parent06ad7e0b570d3c122c05d4147bcbafa861d0fa8f
add-osd: gather facts in second part of playbook

otherwise, it will end up with error like following:

```
FAILED! => {"msg": "'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_hostname'"}
```

because facts won't have been gathered.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1670663
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit a4408785332512f6fab6134ee488a4cec18639c1)
infrastructure-playbooks/add-osd.yml