blob: 1187272738a584d441471dff2ecf7b68f630cd18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
---
- set_fact: k8s_type="master"
- name: Generate master instance names(s)
set_fact:
scratch_name: "{{ cluster_id }}-{{ k8s_type }}-{{ '%05x' | format(1048576 | random) }}"
register: master_names_output
with_sequence: start=1 end={{ num_masters }}
- set_fact:
master_names: "{{ master_names_output.results | oo_collect('ansible_facts') | oo_collect('scratch_name') }}"
|