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.

54 lines
1.3 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: k8s-cluster
  38. any_errors_fatal: true
  39. roles:
  40. - { role: dnsmasq, tags: dnsmasq }
  41. - { role: kubernetes/preinstall, tags: resolvconf }
  42. - hosts: kube-master[0]
  43. any_errors_fatal: true
  44. roles:
  45. - { role: kubernetes-apps/lib, tags: apps }
  46. - { role: kubernetes-apps, tags: apps }