community.general.pacemaker_info module – Gather information about Pacemaker cluster

Note

This module is part of the community.general collection (version 11.3.0).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install community.general.

To use it in a playbook, specify: community.general.pacemaker_info.

New in community.general 11.2.0

Synopsis

  • Gather information about a Pacemaker cluster.

Attributes

Attribute

Support

Description

check_mode

Support: full

This action does not modify state.

Can run in check_mode and return changed status prediction without modifying target.

diff_mode

Support: N/A

This action does not modify state.

Returns details on what has changed (or possibly needs changing in check_mode), when in diff mode.

Examples

- name: Gather Pacemaker cluster info
  community.general.pacemaker_info:
  register: result

- name: Debug cluster info
  ansible.builtin.debug:
    msg: "{{ result }}"

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

cluster_info

dictionary

Cluster information such as the name, UUID, and nodes.

Returned: always

constraint_info

dictionary

All cluster resource constraints on the cluster.

Returned: success

property_info

dictionary

All properties present on the cluster.

Returned: success

resource_info

dictionary

All resources available on the cluster and their status.

Returned: success

stonith_info

dictionary

All STONITH information on the cluster.

Returned: success

version

string

Pacemaker CLI version

Returned: always

Authors

  • Dexter Le (@munchtoast)