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:
parent
1f9942fd75
commit
1192ea1684
|
@ -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 }}
|
||||
|
|
Loading…
Reference in New Issue