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 |
---|---|---|---|---|
out | The output of the current state of the cluster. It return a list of the nodes state. | string | out: [[" overcloud-controller-0", " Online"]]} | |
change | True if the cluster state has changed | bool | ||
rc | exit code of the module | bool |
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
This module is community maintained without core committer oversight.
For more information on what this means please read Module Support
For help in developing on modules, should you be so inclined, please read Community Information & Contributing, Helping Testing PRs and Developing Modules.