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
This commit is contained in:
Sergii Golovatiuk 2020-07-06 13:53:29 +02:00
parent 1f9942fd75
commit 1192ea1684
1 changed files with 1 additions and 0 deletions

View File

@ -175,6 +175,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 }}