Skip to content

Commit

Permalink
facts: fix set_radosgw_address.yml
Browse files Browse the repository at this point in the history
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 <[email protected]>
(cherry picked from commit 434793e)
  • Loading branch information
guits committed Jul 6, 2022
1 parent ab9e8ae commit 62c42cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/ceph-facts/tasks/facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
when: groups.get(mon_group_name, []) | length > 0

- name: import_tasks set_radosgw_address.yml
import_tasks: set_radosgw_address.yml
include_tasks: set_radosgw_address.yml
when: inventory_hostname in groups.get(rgw_group_name, [])

- name: set_fact use_new_ceph_iscsi package or old ceph-iscsi-config/cli
Expand Down

0 comments on commit 62c42cd

Please sign in to comment.