summaryrefslogtreecommitdiffstats
path: root/playbooks/common/openshift-etcd/ca.yml
blob: ac5543be9f5ea12aa29e96126269d17ab9182d71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
- name: Generate new etcd CA
  hosts: oo_first_etcd
  roles:
  - role: openshift_etcd_facts
  tasks:
  - include_role:
      name: etcd
      tasks_from: ca
    vars:
      etcd_peers: "{{ groups.oo_etcd_to_config | default([], true) }}"
      etcd_ca_host: "{{ groups.oo_etcd_to_config.0 }}"
      etcd_certificates_etcd_hosts: "{{ groups.oo_etcd_to_config | default([], true) }}"
    when:
    - etcd_ca_setup | default(True) | bool