set_etcd_launch_facts.yml 452 B

12345678910111213
  1. ---
  2. - set_fact: k8s_type="etcd"
  3. - name: Generate etcd instance names(s)
  4. set_fact:
  5. scratch_name: "{{ openshift_cluster_id | default('default') }}-{{ k8s_type }}-{{ '%05x' | format(1048576 | random) }}"
  6. register: etcd_names_output
  7. with_sequence: count={{ num_etcd }}
  8. - set_fact:
  9. etcd_names: "{{ etcd_names_output.results | default([])
  10. | oo_collect('ansible_facts')
  11. | oo_collect('scratch_name') }}"