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.

40 lines
1.2 KiB

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