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:
parent
2c5b78c2ce
commit
3c48469a74
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue