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.

34 lines
1.2 KiB

  1. ---
  2. ##Bootstrap any new workers
  3. - hosts: kube-node
  4. any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
  5. gather_facts: false
  6. vars:
  7. ansible_ssh_pipelining: false
  8. roles:
  9. - { role: kargo-defaults}
  10. - { role: bootstrap-os, tags: bootstrap-os}
  11. ##We still have to gather facts about our masters and etcd nodes
  12. - hosts: k8s-cluster:etcd:calico-rr
  13. any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
  14. vars:
  15. ansible_ssh_pipelining: true
  16. gather_facts: true
  17. ##Target only workers to get kubelet installed and checking in on any new nodes
  18. - hosts: kube-node
  19. any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
  20. roles:
  21. - { role: kargo-defaults}
  22. - { role: kernel-upgrade, tags: kernel-upgrade, when: kernel_upgrade is defined and kernel_upgrade }
  23. - { role: kubernetes/preinstall, tags: preinstall }
  24. - { role: docker, tags: docker }
  25. - role: rkt
  26. tags: rkt
  27. when: "'rkt' in [etcd_deployment_type, kubelet_deployment_type, vault_deployment_type]"
  28. - { role: etcd, tags: etcd, etcd_cluster_setup: false }
  29. - { role: vault, tags: vault, when: "cert_management == 'vault'"}
  30. - { role: kubernetes/node, tags: node }
  31. - { role: network_plugin, tags: network }