18 lines
453 B
YAML
18 lines
453 B
YAML
---
|
|
|
|
- name: Update server field in component kubeconfigs
|
|
lineinfile:
|
|
dest: "{{ kube_config_dir }}/{{ item }}"
|
|
regexp: '^ server: https'
|
|
line: ' server: {{ kube_apiserver_endpoint }}'
|
|
backup: true
|
|
with_items:
|
|
- admin.conf
|
|
- controller-manager.conf
|
|
- kubelet.conf
|
|
- scheduler.conf
|
|
notify:
|
|
- "Master | Restart kube-controller-manager"
|
|
- "Master | Restart kube-scheduler"
|
|
- "Master | reload kubelet"
|