community.general.pacemaker_stonith module – Manage Pacemaker STONITH
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_stonith
.
New in community.general 11.3.0
Synopsis
This module manages STONITH in a Pacemaker cluster using the Pacemaker CLI.
Parameters
Parameter |
Comments |
---|---|
Enabled agent validation for STONITH creation. Choices:
|
|
Specify the STONITH name to create. |
|
Indicate desired state for cluster STONITH. Choices:
|
|
Action to associate with STONITH. |
|
Action to apply to STONITH. Choices:
|
|
Options to associate with STONITH action. |
|
List of metadata to associate with STONITH. |
|
List of operations to associate with STONITH. Default: |
|
Operation action to associate with STONITH. |
|
Operation options to associate with action. |
|
Specify the STONITH option to create. Default: |
|
Specify the STONITH device type. |
|
Timeout period for polling the STONITH creation. Default: |
Attributes
Attribute |
Support |
Description |
---|---|---|
Support: full |
Can run in |
|
Support: partial Only works when check mode is not enabled. |
Returns details on what has changed (or possibly needs changing in |
See Also
See also
- Pacemaker STONITH documentation
Complete documentation for Pacemaker STONITH.
Examples
- name: Create virtual-ip STONITH
community.general.pacemaker_stonith:
state: present
name: virtual-stonith
stonith_type: fence_virt
stonith_options:
- "pcmk_host_list=f1"
stonith_operations:
- operation_action: monitor
operation_options:
- "interval=30s"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The value of the STONITH before executing the module. Returned: on success Sample: |
|
The value of the STONITH after executing the module. Returned: on success Sample: |