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 |
---|---|---|
Support: full This action does not modify state. |
Can run in |
|
Support: N/A This action does not modify state. |
Returns details on what has changed (or possibly needs changing in |
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 information such as the name, UUID, and nodes. Returned: always |
|
All cluster resource constraints on the cluster. Returned: success |
|
All properties present on the cluster. Returned: success |
|
All resources available on the cluster and their status. Returned: success |
|
All STONITH information on the cluster. Returned: success |
|
Pacemaker CLI version Returned: always |