c12s-kubespray/roles/kubernetes/master/tasks/start.yml

23 lines
588 B
YAML
Raw Normal View History

2016-01-26 10:58:14 +00:00
---
- name: Pause
pause: seconds=10
- name: reload systemd
command: systemctl daemon-reload
when: ansible_service_mgr == "systemd" and restart_apimaster is defined and restart_apimaster == True
2016-01-26 10:58:14 +00:00
- name: reload kube-apiserver
service:
name: kube-apiserver
state: restarted
enabled: yes
2016-02-13 10:59:46 +00:00
when: ( restart_apimaster is defined and restart_apimaster == True) or
secret_changed | default(false)
2016-01-26 10:58:14 +00:00
- name: Enable apiserver
service:
name: kube-apiserver
enabled: yes
state: started
2016-02-13 10:59:46 +00:00
when: restart_apimaster is not defined or restart_apimaster == False