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