set_node_launch_facts_tasks.yml 374 B

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