From 6dc7bfdd3cb89abd0d9462c2be5c4b5e0ef8b7d5 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 5 Jul 2022 10:27:39 +0200 Subject: [PATCH] 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 (cherry picked from commit 434793e2feec64fdbbb8a7bdb959b08dacbb2006) (cherry picked from commit d57377ef619c3304c1eaf4d466dae4055b492d7b) --- roles/ceph-facts/tasks/facts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-facts/tasks/facts.yml b/roles/ceph-facts/tasks/facts.yml index 4b3597152..0c2d4041c 100644 --- a/roles/ceph-facts/tasks/facts.yml +++ b/roles/ceph-facts/tasks/facts.yml @@ -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