]> 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>
Wed, 6 Jul 2022 01:52:54 +0000 (03:52 +0200)
commitfd8aca866d6f9576e2c5b3ed5a676e0430b23e64
treeed163a499f95753930e27d5ee56874cce8787fb6
parent07e6762abf09abb56e1c27b91f965e19b23d621c
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)
roles/ceph-facts/tasks/facts.yml