From: Bartek Grzybowski Date: Tue, 11 Feb 2020 13:25:46 +0000 (+0100) Subject: Use POSIX compliant shell command in cicdansible X-Git-Tag: 6.0.0-ONAP~44 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=6ac532c0d6cd76dd5fef7cee280fdc1f43ea9222;p=oom%2Foffline-installer.git 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 --- 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