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.

41 lines
1.5 KiB

  1. ---
  2. - hosts: localhost
  3. gather_facts: False
  4. roles:
  5. - { role: kubespray-defaults}
  6. - { role: bastion-ssh-config, tags: ["localhost", "bastion"]}
  7. ##Bootstrap any new workers
  8. - hosts: kube-node
  9. any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
  10. gather_facts: false
  11. vars:
  12. ansible_ssh_pipelining: false
  13. roles:
  14. - { role: kubespray-defaults}
  15. - { role: bootstrap-os, tags: bootstrap-os}
  16. ##We still have to gather facts about our masters and etcd nodes
  17. - hosts: k8s-cluster:etcd:calico-rr
  18. any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
  19. vars:
  20. ansible_ssh_pipelining: true
  21. gather_facts: true
  22. ##Target only workers to get kubelet installed and checking in on any new nodes
  23. - hosts: kube-node
  24. any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
  25. roles:
  26. - { role: kubespray-defaults}
  27. - { role: kubernetes/preinstall, tags: preinstall }
  28. - { role: docker, tags: docker, when: manage_docker|default(true) }
  29. - role: rkt
  30. tags: rkt
  31. when: "'rkt' in [etcd_deployment_type, kubelet_deployment_type, vault_deployment_type]"
  32. - { role: download, tags: download, when: "not skip_downloads" }
  33. - { role: etcd, tags: etcd, etcd_cluster_setup: false }
  34. - { role: vault, tags: vault, when: "cert_management == 'vault'"}
  35. - { role: kubernetes/node, tags: node }
  36. - { role: kubernetes/kubeadm, tags: kubeadm, when: "kubeadm_enabled" }
  37. - { role: network_plugin, tags: network }
  38. environment: "{{proxy_env}}"