summaryrefslogtreecommitdiffstats
path: root/playbooks/byo/openshift-cluster/redeploy-certificates.yml
blob: 255b0dbf736f78cb4a56b143fe06aeca3b234bb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
---
- include: initialize_groups.yml
  tags:
  - always

- include: ../../common/openshift-cluster/std_include.yml
  tags:
  - always

- include: ../../common/openshift-cluster/redeploy-certificates/check-expiry.yml
  vars:
    g_check_expiry_hosts: 'oo_etcd_to_config'

- include: ../../common/openshift-cluster/redeploy-certificates/etcd-backup.yml

- include: ../../common/openshift-etcd/certificates.yml
  vars:
    etcd_certificates_redeploy: true

- include: ../../common/openshift-cluster/redeploy-certificates/masters-backup.yml

- include: ../../common/openshift-master/certificates.yml
  vars:
    openshift_certificates_redeploy: true

- include: ../../common/openshift-cluster/redeploy-certificates/nodes-backup.yml

- include: ../../common/openshift-node/certificates.yml
  vars:
    openshift_certificates_redeploy: true

- include: ../../common/openshift-etcd/restart.yml
  vars:
    g_etcd_certificates_expired: "{{ ('expired' in (hostvars | oo_select_keys(groups['etcd']) | oo_collect('check_results.check_results.etcd') | oo_collect('health'))) | bool }}"

- include: ../../common/openshift-master/restart.yml

- include: ../../common/openshift-node/restart.yml

- include: ../../common/openshift-cluster/redeploy-certificates/router.yml
  when: openshift_hosted_manage_router | default(true) | bool

- include: ../../common/openshift-cluster/redeploy-certificates/registry.yml
  when: openshift_hosted_manage_registry | default(true) | bool