redeploy-certificates.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ---
  2. - include: initialize_groups.yml
  3. tags:
  4. - always
  5. - include: ../../common/openshift-cluster/std_include.yml
  6. tags:
  7. - always
  8. - include: ../../common/openshift-cluster/redeploy-certificates/check-expiry.yml
  9. vars:
  10. g_check_expiry_hosts: 'oo_etcd_to_config'
  11. - include: ../../common/openshift-cluster/redeploy-certificates/etcd-backup.yml
  12. - include: ../../common/openshift-etcd/certificates.yml
  13. vars:
  14. etcd_certificates_redeploy: true
  15. - include: ../../common/openshift-cluster/redeploy-certificates/masters-backup.yml
  16. - include: ../../common/openshift-master/certificates.yml
  17. vars:
  18. openshift_certificates_redeploy: true
  19. - include: ../../common/openshift-cluster/redeploy-certificates/nodes-backup.yml
  20. - include: ../../common/openshift-node/certificates.yml
  21. vars:
  22. openshift_certificates_redeploy: true
  23. - include: ../../common/openshift-etcd/restart.yml
  24. vars:
  25. g_etcd_certificates_expired: "{{ ('expired' in (hostvars | oo_select_keys(groups['etcd']) | oo_collect('check_results.check_results.etcd') | oo_collect('health'))) | bool }}"
  26. - include: ../../common/openshift-master/restart.yml
  27. - include: ../../common/openshift-node/restart.yml
  28. - include: ../../common/openshift-cluster/redeploy-certificates/router.yml
  29. when: openshift_hosted_manage_router | default(true) | bool
  30. - include: ../../common/openshift-cluster/redeploy-certificates/registry.yml
  31. when: openshift_hosted_manage_registry | default(true) | bool
  32. - include: ../../common/openshift-master/revert-client-ca.yml
  33. - include: ../../common/openshift-master/restart.yml