0Pricing
Ansible Academy · Lesson

Explore Facts with the setup Module

Dump and browse a host's fact tree.

The Fact Collector

The hidden Gathering Facts step is really one module doing the work: the setup module. You can call it yourself to explore. 🌟

Run setup Ad-Hoc

Point an ad-hoc command at a host with -m setup to dump its full fact tree right to your terminal.

ansible host1 -m setup

All lessons in this course

  1. What Facts Are & Why They Matter
  2. Explore Facts with the setup Module
  3. Use ansible_facts in Tasks
  4. Disabling Fact Gathering for Speed
← Back to Ansible Academy