Skip to content

facts

!facts

Category: control

Gather OS, architecture, and (optionally) facter/ohai facts on the target and store them as host variables (jet_os_type, jet_os_flavor, jet_arch, jet_os_release_). Must run before any jet_ variable is used. See the facts module page for the full variable reference.

Parameters

NameTypeRequiredDescription
facterboolnoAlso run facter –json and store results under the facter variable (requires facter).
ohaiboolnoAlso run ohai and store results under the ohai variable (requires ohai).

Examples

- !facts
  name: gather system facts
  facter: yes