setup

Collection: builtin

Full Name: parallax.builtin.gather_facts

Aliases: ansible.builtin.setup, setup, ansible.builtin.gather_facts, gather_facts

Synopsis

Collect facts about the target host

Parameters

NameTypeRequiredDefaultDescription
filterstring*If supplied, only return facts that match this shell-style (fnmatch) wildcard.
gather_subset[]string[all]Restrict gathered facts to the given subset. Possible values: all, min, hardware, network, virtual, ohai, facter.
gather_timeoutint10Set the default timeout in seconds for individual fact gathering.
fact_pathstring/etc/ansible/facts.dPath used for local ansible facts (*.fact) - files in this dir will be run (if executable) or read (if not).

Example

- name: Gather only network and hardware facts
  gather_facts:
    gather_subset:
      - network
      - hardware