Task should fail on any failure

Ansible should fail on any command in this task not only on last one.

Change-Id: I257c0f4f73e616f159860916ec1db704bd195b86
Closes-Bug: #1885924
(cherry picked from commit 1192ea1684)
This commit is contained in:
Sergii Golovatiuk 2020-07-06 13:53:29 +02:00
parent 2c5b78c2ce
commit 3c48469a74
1 changed files with 1 additions and 0 deletions

View File

@ -177,6 +177,7 @@ outputs:
block:
- name: copy certificate, chgrp, restart haproxy
shell: |
set -e
{{ container_cli }} cp {{ cert_path }} {{ item }}:{{ cert_path }}
{{ container_cli }} exec --user root {{ item }} chgrp haproxy {{ cert_path }}
{{ container_cli }} kill --signal=HUP {{ item }}