community / community.general / 3.8.10 / module / pacemaker_cluster Manage pacemaker clusters Authors: Mathieu Bultel (@matbu)community.general.pacemaker_cluster (3.8.10) — module
Install with ansible-galaxy collection install community.general:==3.8.10
collections: - name: community.general version: 3.8.10
This module can manage a pacemaker cluster and nodes from Ansible using the pacemaker cli.
--- - name: Set cluster Online hosts: localhost gather_facts: no tasks: - name: Get cluster state community.general.pacemaker_cluster: state: online
node: description: - Specify which node of the cluster you want to manage. None == the cluster status itself, 'all' == check the status of all nodes. type: str force: default: 'yes' description: - Force the change of the cluster state type: bool state: choices: - cleanup - offline - online - restart description: - Indicate desired state of the cluster type: str timeout: default: 300 description: - Timeout when the module should considered that the action has failed type: int
changed: description: True if the cluster state has changed returned: always type: bool out: description: The output of the current state of the cluster. It return a list of the nodes state. returned: always sample: 'out: [[" overcloud-controller-0", " Online"]]}' type: str rc: description: exit code of the module returned: always type: bool