Add missed options for bash script.

Initial commit missed 'set -euo pipefail', and redirecting
everything to 'tee' causes job to pass, even ceph-upgrade
command failed.

Change-Id: I5816b3874dff0e5035c3e77c220b56509a12812e
This commit is contained in:
Yurii Prokulevych 2018-05-03 16:18:49 +02:00
parent 23ee103057
commit 7f47c43e83
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
---
- name: run Ceph upgrade
shell: |
{{ working_dir }}/ceph-upgrade-run.sh 2>&1 | tee {{ working_dir }}/ceph-upgrade-run.log
{{ working_dir }}/ceph-upgrade-run.sh &> {{ working_dir }}/ceph-upgrade-run.log
ignore_errors: true
register: ceph_upg_status

View File

@ -1,4 +1,5 @@
#!/bin/env bash
set -euo pipefail
source {{ undercloud_rc }}