From acd16c6664629a5ab420830b0f2063d8a2362e6a Mon Sep 17 00:00:00 2001 From: BillAnastasiadis <54620830+BillAnastasiadis@users.noreply.github.com> Date: Tue, 3 Sep 2024 17:32:27 +0200 Subject: [PATCH] Run aws set_facts conditionally (#266) --- ansible/playbooks/tasks/cluster-bootstrap.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ansible/playbooks/tasks/cluster-bootstrap.yaml b/ansible/playbooks/tasks/cluster-bootstrap.yaml index 9e4ae7be..7f7810d3 100644 --- a/ansible/playbooks/tasks/cluster-bootstrap.yaml +++ b/ansible/playbooks/tasks/cluster-bootstrap.yaml @@ -222,7 +222,7 @@ 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: Set corosync facts +- name: Stonith command [AWS] ansible.builtin.set_fact: aws_stonith_cmd: | crm configure primitive rsc_aws_stonith stonith:external/ec2 \ @@ -231,6 +231,7 @@ op monitor interval=120 timeout=60 \ meta target-role=Started \ params tag={{ aws_stonith_tag}} pcmk_delay_max=15 + when: cloud_platform_is_aws - name: Enable SBD [sbd] ansible.builtin.command: