revert-client-ca.yml 689 B

1234567891011121314151617
  1. ---
  2. - name: Set servingInfo.clientCA = ca.crt in master config
  3. hosts: oo_masters_to_config
  4. tasks:
  5. - name: Read master config
  6. slurp:
  7. src: "{{ openshift.common.config_base }}/master/master-config.yaml"
  8. register: g_master_config_output
  9. # servingInfo.clientCA may be set as the client-ca-bundle.crt from
  10. # CA redeployment and this task reverts that change.
  11. - name: Set servingInfo.clientCA = ca.crt in master config
  12. modify_yaml:
  13. dest: "{{ openshift.common.config_base }}/master/master-config.yaml"
  14. yaml_key: servingInfo.clientCA
  15. yaml_value: ca.crt
  16. when: (g_master_config_output.content|b64decode|from_yaml).servingInfo.clientCA != 'ca.crt'