Skip to content

Commit

Permalink
Test use_sbd as a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
mpagot committed Oct 13, 2023
1 parent bbd73a3 commit 6665695
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ansible/playbooks/tasks/cluster-bootstrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,15 @@
migration_threshold: "{{ (crm_rsc_options_show.stdout | regex_search('migration-threshold=([0-9]*)', '\\1'))[0] | default('false') }}"
op_default_timeout: "{{ (crm_op_options_show.stdout | regex_search('timeout=([0-9]*)', '\\1'))[0] | default('false') }}"

- name: Variable use_sbd
ansible.builtin.debug:
msg: "Cloud platform appears to be use_sbd: {{ use_sbd }} use_sbd bool : {{ use_sbd | bool }} use_sbd string: {{ use_sbd | string | lower == 'false' }}"

- name: Enable SBD [sbd]
ansible.builtin.command: crm configure primitive rsc_iscsi_sbd stonith:external/sbd
when:
- sbd_stonith | string | lower == 'false'
- use_sbd
- use_sbd | bool
- is_primary

- name: Set stonith-timeout [sdb]
Expand Down

0 comments on commit 6665695

Please sign in to comment.