ansible / ansible.builtin / v2.8.20 / module / pacemaker_cluster Manage pacemaker clusters | "added in version" 2.3 of ansible.builtin" Authors: Mathieu Bultel (@matbu) preview | supported by communityansible.builtin.pacemaker_cluster (v2.8.20) — module
pip
Install with pip install ansible==2.8.20
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