Ansible Info

Provide information about the Ansible packages installed on a system.

class insights.combiners.ansible_info.AnsibleInfo(rpms)[source]

Bases: dict

Provides information related to Ansible based on the RPMs installed.

Provides properties to determine the Ansible specific system characteristics. The base class of the combiner is dict with dictionary keys being the Ansible package names, and data values being insights.parsers.installed_rpms.InstalledRpm objects. See the insights.parsers.installed_rpms.InstalledRpm class for more information on object methods and values.

Properties are provided to aid in fingerprinting of the system.

Examples

>>> type(info)
<class 'insights.combiners.ansible_info.AnsibleInfo'>
>>> info.is_tower
True
>>> info.tower_version
'1.0.0'
>>> info.is_controller
True
>>> info.controller_version
'1.0.0'
property catalog_worker_version

Version of catalog-worker installed or None

Type:

str

property controller_version

Version of ansible-tower installed, or if it’s not installed the version of automation-controller installed or None

Type:

str

property hub_version

Version of automation-hub installed or None

Type:

str

property is_catalog_worker

Whether or not this system has catalog-worker installed

Type:

bool

property is_controller

Whether or not this system has ansible-tower or automation-controller installed

Type:

bool

property is_hub

Whether or not this system has automation-hub installed

Type:

bool

property is_tower

Whether or not this system has ansible-tower installed

Type:

bool

property tower_version

Version of ansible-tower installed or None

Type:

str