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.

26 lines
708 B

  1. ---
  2. - name: Gather facts
  3. hosts: k8s-cluster:etcd:calico-rr
  4. gather_facts: False
  5. tasks:
  6. - name: Gather minimal facts
  7. setup:
  8. gather_subset: '!all'
  9. # filter match the following variables:
  10. # ansible_default_ipv4
  11. # ansible_default_ipv6
  12. # ansible_all_ipv4_addresses
  13. # ansible_all_ipv6_addresses
  14. - name: Gather necessary facts (network)
  15. setup:
  16. gather_subset: '!all,!min,network'
  17. filter: "ansible_*_ipv[46]*"
  18. # filter match the following variables:
  19. # ansible_memtotal_mb
  20. # ansible_swaptotal_mb
  21. - name: Gather necessary facts (hardware)
  22. setup:
  23. gather_subset: '!all,!min,hardware'
  24. filter: "ansible_*total_mb"