community.general.pacemaker_info module – Gather information about Pacemaker cluster
Note
This module is part of the community.general collection (version 12.6.1).
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 |
diff_mode | 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_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 |
Collection links
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/projects/ansible/latest/collections/community/general/pacemaker_info_module.html