setup
Collect facts about the target host
Collection: builtin
Full Name: parallax.builtin.setup
Aliases: ansible.builtin.setup, setup
Synopsis
Collect facts about the target host
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| gather_subset | list | [all] | If supplied, restrict the additional facts collected to the given subset | |
| gather_timeout | int | 10 | Set the default timeout in seconds for individual fact gathering | |
| filter | list | If supplied, only return facts that match one of the shell-style (fnmatch) patterns | ||
| fact_path | string | Path used for local ansible facts (*.fact) |
Example
yaml
- name: Gather only the network facts
setup:
gather_subset:
- network
- name: Gather facts matching a filter
setup:
filter: ansible_eth*