community.general.facter (8.5.0) — module

Runs the discovery program C(facter) on the remote system

Authors: Ansible Core Team, Michael DeHaan

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

Runs the C(facter) discovery program (U(https://github.com/puppetlabs/facter)) on the remote system, returning JSON data that can be useful for inventory purposes.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Example command-line invocation
# ansible www.example.net -m facter

- name: Execute facter no arguments
  community.general.facter:
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Execute facter with arguments
  community.general.facter:
    arguments:
        - -p
        - system_uptime
        - timezone
        - is_virtual

Inputs

    
arguments:
    description:
    - Specifies arguments for facter.
    elements: str
    type: list