From 8aec21a6d9b439eb652d3eb21b5e919ff1cb7f5f Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 26 May 2020 18:02:37 +0200 Subject: [PATCH] copr-be: set pipefail in vm-aws-new ... to not ignore ansible playbook failure, and to actually terminate the instance if the playbook fails. --- roles/copr/backend/templates/resalloc/vm-aws-new | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/copr/backend/templates/resalloc/vm-aws-new b/roles/copr/backend/templates/resalloc/vm-aws-new index dc36a5ec62..27dd311dd7 100755 --- a/roles/copr/backend/templates/resalloc/vm-aws-new +++ b/roles/copr/backend/templates/resalloc/vm-aws-new @@ -1,6 +1,7 @@ #! /usr/bin/bash set -e +set -o pipefail delete_script=$(readlink -f "$(dirname "$0")")/vm-aws-delete