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 434793e2fe)
pull/7244/head
Guillaume Abrioux 2022-07-05 10:27:39 +02:00
parent ab9e8aeb12
commit 62c42cd06b
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@
when: groups.get(mon_group_name, []) | length > 0 when: groups.get(mon_group_name, []) | length > 0
- name: import_tasks set_radosgw_address.yml - 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, []) when: inventory_hostname in groups.get(rgw_group_name, [])
- name: set_fact use_new_ceph_iscsi package or old ceph-iscsi-config/cli - name: set_fact use_new_ceph_iscsi package or old ceph-iscsi-config/cli