ondrejhome / ondrejhome.ha_cluster / 1.0.2 / module / pcs_stonith_level wrapper module for 'pcs stonith level' | "added in version" 2.4 of ondrejhome.ha_cluster" Authors: Ondrej Famera (@OndrejHome) preview | supported by communityondrejhome.ha_cluster.pcs_stonith_level (1.0.2) — module
Install with ansible-galaxy collection install ondrejhome.ha_cluster:==1.0.2
collections: - name: ondrejhome.ha_cluster version: 1.0.2
module for creating and deleting stonith levels using 'pcs' utility
- name: add fence-kdump as level 1 stonith device for node-a pcs_stonith_level: level: '1' node_name: 'node-a' stonith_device: 'fence_kdump'
- name: remove fence-xvm level 2 stonith device from node-b pcs_stonith_level: level: '2' node_name: 'node-b' stonith_device: 'fence_xvm' state: 'absent'
level: choices: - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 description: - numerical stonith level (1-9) required: true type: int state: choices: - present - absent default: present description: - '''present'' - ensure that stonith level for given node and stonith device exists' - '''absent'' - ensure that stonith level for given node and stonith device doesn''t exist' required: false type: str cib_file: description: - Apply changes to specified file containing cluster CIB instead of running cluster. - This module requires the file to already contain cluster configuration. required: false type: str node_name: description: - name of cluster node for this stonith level and stonith_device required: true type: str stonith_device: description: - name of existing stonith device required: true type: str