You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
452 B

  1. ---
  2. - name: Update server field in component kubeconfigs
  3. lineinfile:
  4. dest: "{{ kube_config_dir }}/{{ item }}"
  5. regexp: '^ server: https'
  6. line: ' server: {{ kube_apiserver_endpoint }}'
  7. backup: yes
  8. with_items:
  9. - admin.conf
  10. - controller-manager.conf
  11. - kubelet.conf
  12. - scheduler.conf
  13. notify:
  14. - "Master | Restart kube-controller-manager"
  15. - "Master | Restart kube-scheduler"
  16. - "Master | reload kubelet"