mirror of https://github.com/ceph/ceph-ansible.git
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 commitpull/7307/head v4.0.70.7434793e2fe
) (cherry picked from commitd57377ef61
)
parent
f8cc43558f
commit
6dc7bfdd3c
|
@ -292,7 +292,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 ntp service name depending on OS family
|
||||
|
|
Loading…
Reference in New Issue