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.3 KiB

  1. ---
  2. - name: Bootstrap hosts for Ansible
  3. hosts: k8s_cluster:etcd:calico_rr
  4. strategy: linear
  5. any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
  6. gather_facts: false
  7. environment: "{{ proxy_disable_env }}"
  8. vars:
  9. # Need to disable pipelining for bootstrap-os as some systems have requiretty in sudoers set, which makes pipelining
  10. # fail. bootstrap-os fixes this on these systems, so in later plays it can be enabled.
  11. ansible_ssh_pipelining: false
  12. roles:
  13. - { role: kubespray-defaults }
  14. - { role: bootstrap-os, tags: bootstrap-os}
  15. - name: Gather facts
  16. hosts: k8s_cluster:etcd:calico_rr
  17. gather_facts: False
  18. tags: always
  19. tasks:
  20. - name: Gather minimal facts
  21. setup:
  22. gather_subset: '!all'
  23. # filter match the following variables:
  24. # ansible_default_ipv4
  25. # ansible_default_ipv6
  26. # ansible_all_ipv4_addresses
  27. # ansible_all_ipv6_addresses
  28. - name: Gather necessary facts (network)
  29. setup:
  30. gather_subset: '!all,!min,network'
  31. filter: "ansible_*_ipv[46]*"
  32. # filter match the following variables:
  33. # ansible_memtotal_mb
  34. # ansible_swaptotal_mb
  35. - name: Gather necessary facts (hardware)
  36. setup:
  37. gather_subset: '!all,!min,hardware'
  38. filter: "ansible_*total_mb"