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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| filter | string | * | 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_timeout | int | 10 | Set the default timeout in seconds for individual fact gathering. | |
| fact_path | string | /etc/ansible/facts.d | Path 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