- ---
- - set_fact: k8s_type="node"
- - name: Generate node instance names(s)
- set_fact:
- scratch_name: "{{ cluster_id }}-{{ k8s_type }}-{{ '%05x' | format(1048576 | random) }}"
- register: node_names_output
- with_sequence: start=1 end={{ num_nodes }}
- - set_fact:
- node_names: "{{ node_names_output.results | oo_collect('ansible_facts') | oo_collect('scratch_name') }}"
|