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.

36 lines
913 B

9 years ago
9 years ago
  1. ---
  2. - name: create kubernetes config directory
  3. file: path={{ kube_config_dir }} state=directory
  4. - name: create kubernetes script directory
  5. file: path={{ kube_script_dir }} state=directory
  6. - name: Make sure manifest directory exists
  7. file: path={{ kube_manifest_dir }} state=directory
  8. - include: secrets.yml
  9. tags:
  10. - secrets
  11. - include: install.yml
  12. - name: Write kubelet config file
  13. template: src=kubelet.j2 dest={{ kube_config_dir }}/kubelet backup=yes
  14. notify:
  15. - restart kubelet
  16. - name: write the kubecfg (auth) file for kubelet
  17. template: src=node-kubeconfig.yaml.j2 dest={{ kube_config_dir }}/node-kubeconfig.yaml backup=yes
  18. notify:
  19. - restart kubelet
  20. - name: Write proxy manifest
  21. template:
  22. src: manifests/kube-proxy.manifest.j2
  23. dest: "{{ kube_manifest_dir }}/kube-proxy.manifest"
  24. - name: Enable kubelet
  25. service:
  26. name: kubelet
  27. enabled: yes
  28. state: started