ansible.builtin.pacemaker_cluster (v2.9.27) — module

Manage pacemaker clusters

| "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.9.27

Description

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

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:
    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

Outputs

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