sap.sap_operations.pcs_status_info module – Get pacemaker status information
Note
This module is part of the sap.sap_operations collection.
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 sap.sap_operations
.
To use it in a playbook, specify: sap.sap_operations.pcs_status_info
.
New in sap.sap_operations 1.4.0-galaxy
Synopsis
Get pacemaker status information
This module will execute command
pcs status xml
and process results to present them nicely in AnsibleIf pacemaker is not running, or ansible user does not have authorizations to execution
pcs status xml
command, module will failRecommended to use
root
user
Notes
Note
This module is community supported
Module interface (parameters, output) expected to be stable but not guaranteed
Module planned to be released on Ansible Automation Hub after collecting some feedback
There is no guarantee that this module will be officially supported by Red Hat
Examples
- name: Get pacemaker status
sap.sap_operations.pcs_status_info:
become: true
become_user: root
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Pacemaker status information in a dictionary Returned: success Sample: |