k8s-sig-cluster-lifecycleawskubesprayhigh-availabilityansiblekubernetes-clustergcekubernetesbare-metal
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.
21 lines
533 B
21 lines
533 B
---
|
|
- name: Pause
|
|
pause: seconds=10
|
|
|
|
- name: reload systemd
|
|
command: systemctl daemon-reload
|
|
when: init_system == "systemd" and restart_apimaster is defined and restart_apimaster == True
|
|
|
|
- name: reload kube-apiserver
|
|
service:
|
|
name: kube-apiserver
|
|
state: restarted
|
|
enabled: yes
|
|
when: restart_apimaster is defined and restart_apimaster == True
|
|
|
|
- name: Enable apiserver
|
|
service:
|
|
name: kube-apiserver
|
|
enabled: yes
|
|
state: started
|
|
when: restart_apimaster is not defined or restart_apimaster == False
|