From e0307d381d54964142d3d56b95fc84ab2fc46f31 Mon Sep 17 00:00:00 2001 From: Anis FATHALLAH Date: Wed, 14 Sep 2022 14:58:28 +0400 Subject: [PATCH] load definition_file with include vars Signed-off-by: Anis FATHALLAH --- .../tasks/distribute_facts_to_inventory.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/roles/cloudera_deploy/tasks/distribute_facts_to_inventory.yml b/roles/cloudera_deploy/tasks/distribute_facts_to_inventory.yml index 4c74f6b..a2cde2f 100644 --- a/roles/cloudera_deploy/tasks/distribute_facts_to_inventory.yml +++ b/roles/cloudera_deploy/tasks/distribute_facts_to_inventory.yml @@ -14,9 +14,19 @@ # See the License for the specific language governing permissions and # limitations under the License. +- name: Load Definition file + ansible.builtin.include_vars: + file: "{{ init__cluster_definition_file }}" + name: _pre_template_cluster + delegate_to: "{{ __play_host }}" + delegate_facts: true + loop: "{{ groups.all }}" + loop_control: + loop_var: __play_host + label: __play_host + - name: Set specific Facts for later use in Cluster Deployment ansible.builtin.set_fact: - _pre_template_cluster: "{{ lookup('file', init__cluster_definition_file ) | from_yaml }}" preload_parcels: "{{ download_mirror_file_list | default([]) }}" custom_repo_rehost_files: "{{ download_mirror_file_list | default([]) }}" delegate_to: "{{ __play_host }}"