Skip to content

Commit 18b4bfa

Browse files
authored
load definition_file with include vars (#96)
Signed-off-by: Anis FATHALLAH <[email protected]> Signed-off-by: Anis FATHALLAH <[email protected]>
1 parent 17902a9 commit 18b4bfa

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

roles/cloudera_deploy/tasks/distribute_facts_to_inventory.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,19 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17+
- name: Load Definition file
18+
ansible.builtin.include_vars:
19+
file: "{{ init__cluster_definition_file }}"
20+
name: _pre_template_cluster
21+
delegate_to: "{{ __play_host }}"
22+
delegate_facts: true
23+
loop: "{{ groups.all }}"
24+
loop_control:
25+
loop_var: __play_host
26+
label: __play_host
27+
1728
- name: Set specific Facts for later use in Cluster Deployment
1829
ansible.builtin.set_fact:
19-
_pre_template_cluster: "{{ lookup('file', init__cluster_definition_file ) | from_yaml }}"
2030
preload_parcels: "{{ download_mirror_file_list | default([]) }}"
2131
custom_repo_rehost_files: "{{ download_mirror_file_list | default([]) }}"
2232
delegate_to: "{{ __play_host }}"

0 commit comments

Comments
 (0)