community / community.general / 0.1.4 / module / pacemaker_cluster Manage pacemaker clusters Authors: Mathieu Bultel (@matbu)community.general.pacemaker_cluster (0.1.4) — module
Install with ansible-galaxy collection install community.general:==0.1.4
collections: - name: community.general version: 0.1.4
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 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. 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 required: true timeout: default: 300 description: - Timeout when the module should considered that the action has failed
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