ansible.builtin.pacemaker_cluster (v2.3.2.0-1) — module

Manage a pacemaker cluster

| "added in version" 2.3 of ansible.builtin"

Authors: Mathieu Bultel (matbu)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.3.2.0.post1

Description

This module can manage a pacemaker cluster and nodes from Ansible using the pacemaker cli.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
---
- name: Set cluster Online
  hosts: localhost
  gather_facts: no
  tasks:
    - name: get cluster state
      pacemaker_cluster: state=online

Inputs

    
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

Outputs

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