setup module

The module that collects facts about a host, such as its operating system, memory and network addresses.

In more detail

Fact gathering at the start of a play runs this module for you, which is why a play shows a Gathering Facts task you did not write. Run on its own with -a filter=<pattern> it shows matching facts, and a star at the end of a pattern selects a family of facts. It only looks, so it always reports unchanged.

Example

ansible all -m ansible.builtin.setup -a filter=ansible_system

Related terms

Taught in

References

Certification courses