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.

59 lines
1.5 KiB

9 years ago
9 years ago
9 years ago
  1. ---
  2. - hosts: all
  3. any_errors_fatal: true
  4. gather_facts: false
  5. vars:
  6. # Need to disable pipelining for bootstrap-os as some systems have requiretty in sudoers set, which makes pipelining
  7. # fail. bootstrap-os fixes this on these systems, so in later plays it can be enabled.
  8. ansible_ssh_pipelining: false
  9. roles:
  10. - bootstrap-os
  11. tags:
  12. - bootstrap-os
  13. - hosts: all
  14. any_errors_fatal: true
  15. gather_facts: true
  16. - hosts: all:!network-storage
  17. any_errors_fatal: true
  18. roles:
  19. - { role: kubernetes/preinstall, tags: preinstall }
  20. - { role: docker, tags: docker }
  21. - hosts: etcd:!k8s-cluster
  22. any_errors_fatal: true
  23. roles:
  24. - { role: etcd, tags: etcd }
  25. - hosts: k8s-cluster
  26. any_errors_fatal: true
  27. roles:
  28. - { role: etcd, tags: etcd }
  29. - { role: kubernetes/node, tags: node }
  30. - { role: network_plugin, tags: network }
  31. - hosts: kube-master
  32. any_errors_fatal: true
  33. roles:
  34. - { role: kubernetes/master, tags: master }
  35. - { role: kubernetes-apps/lib, tags: apps }
  36. - { role: kubernetes-apps/network_plugin, tags: network }
  37. - hosts: calico-rr
  38. any_errors_fatal: true
  39. roles:
  40. - { role: network_plugin/calico/rr, tags: network }
  41. - hosts: k8s-cluster
  42. any_errors_fatal: true
  43. roles:
  44. - { role: dnsmasq, tags: dnsmasq }
  45. - { role: kubernetes/preinstall, tags: resolvconf }
  46. - hosts: kube-master[0]
  47. any_errors_fatal: true
  48. roles:
  49. - { role: kubernetes-apps/lib, tags: apps }
  50. - { role: kubernetes-apps, tags: apps }