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.

20 lines
533 B

  1. ---
  2. - name: Pause
  3. pause: seconds=10
  4. - name: reload systemd
  5. command: systemctl daemon-reload
  6. when: init_system == "systemd" and restart_apimaster is defined and restart_apimaster == True
  7. - name: reload kube-apiserver
  8. service:
  9. name: kube-apiserver
  10. state: restarted
  11. enabled: yes
  12. when: restart_apimaster is defined and restart_apimaster == True
  13. - name: Enable apiserver
  14. service:
  15. name: kube-apiserver
  16. enabled: yes
  17. state: started
  18. when: restart_apimaster is not defined or restart_apimaster == False