getconf – Reports system configuration variable values as facts.

Synopsis

List system configuration variable values.

Will not list PathConfiguration or DeviceVariable by default

URL

Requirements

The below requirements are needed on the host that executes this module.

  • AIX >= 7.1 TL3

  • Python >= 3.6

Parameters

variable (optional, str, )

Specifies a system configuration variable (SystemwideConfiguration), a system path configuration variable (PathConfiguration), or a device variable (DeviceVariable)

path (optional, str, )

Specifies a path name for the PathConfiguration parameter (PathName), or a path name of a device (DeviceName)

Examples

- name: List all system configuration variable values.
  getconf:
- name: Get hdisk0 size
  getconf:
    variable: DISK_SIZE
    path: /dev/hdisk0
- name: Get ARG_MAX value
  getconf:
    variable: ARG_MAX

Return Values

ansible_facts (always, complex, )

Facts to add to ansible_facts about the system configuration variable values.

conf (success, dict, )

Contains a list of system configuration variable key-values.

Status

  • This module is not guaranteed to have a backwards compatible interface. [preview]

  • This module is maintained by community.

Authors

  • Aiman Shaharuddin (@syahrul-aiman)