Skip to content

Commit 62a0f09

Browse files
Use command instead of shell for cluster join checks
1 parent 6402763 commit 62a0f09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/galera.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
- name: Wait until cluster is initialized
7575
changed_when: yes
7676
when: mariadb.galera.initializer
77-
ansible.builtin.shell:
77+
ansible.builtin.command:
7878
cmd: "{{ lookup('template', 'has_joined_cluster.sh') }}"
7979

8080
- name: Join cluster
@@ -86,7 +86,7 @@
8686
- name: Wait until node has joined cluster
8787
when: not mariadb.galera.initializer and not mariadb.galera.arbitrator
8888
changed_when: yes
89-
ansible.builtin.shell:
89+
ansible.builtin.command:
9090
cmd: "{{ lookup('template', 'has_joined_cluster.sh') }}"
9191

9292
- name: Set up garb service
@@ -142,5 +142,5 @@
142142
- name: Wait that node has rejoined cluster
143143
when: mariadb.galera.initializer
144144
changed_when: yes
145-
ansible.builtin.shell:
145+
ansible.builtin.command:
146146
cmd: "{{ lookup('template', 'has_joined_cluster.sh') }}"

0 commit comments

Comments
 (0)