14 lines
365 B
YAML
14 lines
365 B
YAML
---
|
|
- name: Update server field in component kubeconfigs
|
|
lineinfile:
|
|
dest: "{{ kube_config_dir }}/{{ item }}.conf"
|
|
regexp: 'server:'
|
|
line: ' server: {{ kube_apiserver_endpoint }}'
|
|
backup: yes
|
|
with_items:
|
|
- controller-manager
|
|
- scheduler
|
|
when:
|
|
- not loadbalancer_apiserver is defined
|
|
notify: "Master | Restart kube-{{ item }}"
|