Skip to content

Commit e1b4928

Browse files
committed
Use bash for all shell tasks
Without this we see the following issue during Ubuntu upgrades: '/bin/sh: 1: [[: not found' In the 'Revert TLS changes to avoid git conflicts (upgrade)' task in deploy-openstack-config.yml.
1 parent da6ee02 commit e1b4928

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ansible/deploy-openstack-config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
if [[ -f {{ kayobe_environment_path }}/kolla/globals-tls-config.yml ]]; then
8686
sed -i 's/^kolla_enable_tls_internal: true/# kolla_enable_tls_internal: true/g' {{ kayobe_environment_path }}/kolla.yml
8787
fi
88+
executable: /bin/bash
8889
when: upgrade | bool
8990
vars:
9091
kayobe_environment_path: "{{ src_directory }}/kayobe-config/etc/kayobe/environments/{{ kayobe_config_environment }}"
@@ -133,6 +134,7 @@
133134
if [[ -f {{ kayobe_environment_path }}/kolla/globals-tls-config.yml ]]; then
134135
sed -i 's/# kolla_enable_tls_internal: true/kolla_enable_tls_internal: true/g' {{ kayobe_environment_path }}/kolla.yml
135136
fi
137+
executable: /bin/bash
136138
when: upgrade | bool
137139
vars:
138140
kayobe_environment_path: "{{ src_directory }}/kayobe-config/etc/kayobe/environments/{{ kayobe_config_environment }}"
@@ -217,6 +219,7 @@
217219
cmd: >
218220
awk -F'=' '/defaultbranch/ {print $2}' {{ src_directory }}/{{ kayobe_config_name }}/.gitreview |
219221
sed -E "s,(stable|unmaintained)/,,"
222+
executable: /bin/bash
220223
register: openstack_release
221224
changed_when: false
222225

ansible/grow-control-host.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- name: Check LVM status
1111
shell:
1212
cmd: vgdisplay | grep -q lvm2
13+
executable: /bin/bash
1314
changed_when: false
1415
failed_when: false
1516
check_mode: false
@@ -20,6 +21,7 @@
2021
- name: Check if growpart is installed
2122
shell:
2223
cmd: type growpart
24+
executable: /bin/bash
2325
changed_when: false
2426
failed_when: false
2527
check_mode: false

0 commit comments

Comments
 (0)