]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
facts: fix set_radosgw_address.yml
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 5 Jul 2022 08:27:39 +0000 (10:27 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 5 Jul 2022 19:10:50 +0000 (21:10 +0200)
commit434793e2feec64fdbbb8a7bdb959b08dacbb2006
treea61e3359bb487432e4662f09cba650a5fbe833e9
parent047af3a3f66b6135cf7ab6a7c28b9c30dea3c836
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>
roles/ceph-facts/tasks/facts.yml