From 6ac532c0d6cd76dd5fef7cee280fdc1f43ea9222 Mon Sep 17 00:00:00 2001 From: Bartek Grzybowski Date: Tue, 11 Feb 2020 14:25:46 +0100 Subject: Use POSIX compliant shell command in cicdansible "[[ ]]" is a bash specific command that doesn't work in dash which is Ubuntu's default shell. Change-Id: Idd09c2e1e8c409503b12756141632527ab91b5ec Signed-off-by: Bartek Grzybowski Issue-ID: OOM-1671 --- .../roles/setup_openstack_infrastructure/tasks/configure/volume.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/cicdansible/roles/setup_openstack_infrastructure/tasks/configure/volume.yml b/tools/cicdansible/roles/setup_openstack_infrastructure/tasks/configure/volume.yml index 8c553850..568b7202 100644 --- a/tools/cicdansible/roles/setup_openstack_infrastructure/tasks/configure/volume.yml +++ b/tools/cicdansible/roles/setup_openstack_infrastructure/tasks/configure/volume.yml @@ -7,7 +7,7 @@ partition_path: "{{ volume_path }}-part1" - name: "Wait for volume" #We do not do it normally, because we want to trigger udev (workaround for some bugs). - shell: "udevadm trigger && udevadm settle && [[ -b {{ volume_path }} ]]" + shell: "udevadm trigger && udevadm settle && [ -b {{ volume_path }} ]" register: result retries: 30 delay: 10 -- cgit 1.2.3-korg