Skip to content

Commit 62c42cd

Browse files
committed
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 <[email protected]> (cherry picked from commit 434793e)
1 parent ab9e8ae commit 62c42cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/ceph-facts/tasks/facts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
when: groups.get(mon_group_name, []) | length > 0
254254

255255
- name: import_tasks set_radosgw_address.yml
256-
import_tasks: set_radosgw_address.yml
256+
include_tasks: set_radosgw_address.yml
257257
when: inventory_hostname in groups.get(rgw_group_name, [])
258258

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

0 commit comments

Comments
 (0)