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.

65 lines
1.6 KiB

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