New in version 2.3.
- python >= 2.6
parameter | required | default | choices | comments |
---|---|---|---|---|
force |
no | True |
Force the change of the cluster state
|
|
node |
no | None |
Specify which node of the cluster you want to manage. None == the cluster status itself, 'all' == check the status of all nodes.
|
|
state |
yes |
|
Indicate desired state of the cluster
|
|
timeout |
no | 300 |
Timeout when the module should considered that the action has failed
|
--- - name: Set cluster Online hosts: localhost gather_facts: no tasks: - name: get cluster state pacemaker_cluster: state=online
Common return values are documented here Return Values, the following are the fields unique to this module:
name | description | returned | type | sample |
---|---|---|---|---|
changed |
True if the cluster state has changed
|
always | bool | |
out |
The output of the current state of the cluster. It return a list of the nodes state.
|
always | string | out: [[" overcloud-controller-0", " Online"]]} |
rc |
exit code of the module
|
always | bool |
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Testing Ansible and Developing Modules.