From 6f64549e1bf54af55072a5992d1011b28fa6ca22 Mon Sep 17 00:00:00 2001 From: Benjamin Diaz Date: Mon, 27 Nov 2017 15:07:38 -0300 Subject: [PATCH] Set bash as shell when executing mariadb recovery task Added 'executable' argument to the shell action in the 'Comparing seqno value' task in the cluster recovery playbook. Change-Id: I3e96a4a76b44ffb558b9a41cde16e66a8d0fab1a Closes-Bug: #1729603 --- ansible/roles/mariadb/tasks/recover_cluster.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/mariadb/tasks/recover_cluster.yml b/ansible/roles/mariadb/tasks/recover_cluster.yml index 707d745c7e..dd484b9445 100644 --- a/ansible/roles/mariadb/tasks/recover_cluster.yml +++ b/ansible/roles/mariadb/tasks/recover_cluster.yml @@ -42,6 +42,8 @@ - name: Comparing seqno value on all mariadb hosts shell: "if [[ {{ hostvars[inventory_hostname]['seqno'] }} -lt {{ hostvars[item]['seqno'] }} ]]; then echo {{ hostvars[item]['seqno'] }}; fi" + args: + executable: /bin/bash with_items: "{{ groups['mariadb'] }}" changed_when: false register: seqno_compare