setup Module

May 8, 2026 ยท View on GitHub

Gather current host information, which is the underlying implementation of gather_facts in playbooks.

Parameters

No additional parameters.

Examples

1. Enable gather_facts in playbook

- name: playbook
  hosts: localhost
  gather_facts: true

2. Explicitly call setup in task

- name: setup
  setup: {}