]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
facts: fix set_radosgw_address.yml v4.0.70.7
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 5 Jul 2022 08:27:39 +0000 (10:27 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 7 Jul 2022 08:30:25 +0000 (10:30 +0200)
commit6dc7bfdd3cb89abd0d9462c2be5c4b5e0ef8b7d5
tree3d7e1d4f29584897db81f44029c043367f2c5987
parentf8cc43558f14b3e6f77e0b7db3d7c39027ad56bc
facts: fix set_radosgw_address.yml

use `include_tasks` instead of `import_tasks`.
Given that with `import_tasks` statements are preprocessed
and the tasks that defines it hasn't been run yet, it will fail
and complain like following:

```
The error was: 'ansible.vars.hostvars.HostVarsVars object' has no attribute '_interface'
```

Using `include_tasks` instead fixes this.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 434793e2feec64fdbbb8a7bdb959b08dacbb2006)
(cherry picked from commit d57377ef619c3304c1eaf4d466dae4055b492d7b)
roles/ceph-facts/tasks/facts.yml