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.

66 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: k8s-cluster:etcd:calico-rr
  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: k8s-cluster:etcd:calico-rr
  19. any_errors_fatal: true
  20. vars:
  21. ansible_ssh_pipelining: true
  22. gather_facts: true
  23. - hosts: k8s-cluster:etcd:calico-rr
  24. any_errors_fatal: true
  25. roles:
  26. - { role: kubernetes/preinstall, tags: preinstall }
  27. - { role: docker, tags: docker }
  28. - hosts: etcd:!k8s-cluster
  29. any_errors_fatal: true
  30. roles:
  31. - { role: etcd, tags: etcd }
  32. - hosts: k8s-cluster
  33. any_errors_fatal: true
  34. roles:
  35. - { role: etcd, tags: etcd }
  36. - { role: kubernetes/node, tags: node }
  37. - { role: network_plugin, tags: network }
  38. - hosts: kube-master
  39. any_errors_fatal: true
  40. roles:
  41. - { role: kubernetes/master, tags: master }
  42. - { role: kubernetes-apps/lib, tags: apps }
  43. - { role: kubernetes-apps/network_plugin, tags: network }
  44. - hosts: calico-rr
  45. any_errors_fatal: true
  46. roles:
  47. - { role: network_plugin/calico/rr, tags: network }
  48. - hosts: k8s-cluster
  49. any_errors_fatal: true
  50. roles:
  51. - { role: dnsmasq, tags: dnsmasq }
  52. - { role: kubernetes/preinstall, tags: resolvconf }
  53. - hosts: kube-master[0]
  54. any_errors_fatal: true
  55. roles:
  56. - { role: kubernetes-apps/lib, tags: apps }
  57. - { role: kubernetes-apps, tags: apps }