ansible / ansible.builtin / v2.3.2.0-1 / module / pacemaker_cluster Manage a pacemaker cluster | "added in version" 2.3 of ansible.builtin" Authors: Mathieu Bultel (matbu) preview | supported by communityansible.builtin.pacemaker_cluster (v2.3.2.0-1) — module
pip
Install with pip install ansible==2.3.2.0.post1
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: default: None description: - Specify which node of the cluster you want to manage. None == the cluster status itself, 'all' == check the status of all nodes. required: false force: default: true description: - Force the change of the cluster state required: false state: choices: - online - offline - restart - cleanup description: - Indicate desired state of the cluster required: true timeout: default: 300 description: - Timeout when the module should considered that the action has failed required: false
change: description: True if the cluster state has changed type: bool out: description: The output of the current state of the cluster. It return a list of the nodes state. sample: 'out: [[" overcloud-controller-0", " Online"]]}' type: string rc: description: exit code of the module type: bool