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
| Name | Type | Required | Description |
|---|---|---|---|
facter | bool | no | Also run facter –json and store results under the facter variable (requires facter). |
ohai | bool | no | Also run ohai and store results under the ohai variable (requires ohai). |
Examples
- !facts
name: gather system facts
facter: yes