Use POSIX compliant shell command in cicdansible 34/101534/1
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Tue, 11 Feb 2020 13:25:46 +0000 (14:25 +0100)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Tue, 11 Feb 2020 13:25:46 +0000 (14:25 +0100)
"[[ ]]" 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 <b.grzybowski@partner.samsung.com>
Issue-ID: OOM-1671

tools/cicdansible/roles/setup_openstack_infrastructure/tasks/configure/volume.yml

index 8c55385..568b720 100644 (file)
@@ -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