Merge "Fix Error: invalid arguments you must use just one container" into stable/train
This commit is contained in:
commit
24c451b279
|
@ -175,9 +175,9 @@ outputs:
|
||||||
- container_id.stdout is defined
|
- container_id.stdout is defined
|
||||||
- container_id.stdout != ''
|
- container_id.stdout != ''
|
||||||
block:
|
block:
|
||||||
- name: copy certificate from host to container
|
- name: copy certificate, chgrp, restart haproxy
|
||||||
shell: "{{ container_cli }} cp {{ cert_path }} {{ container_id.stdout }}:{{ cert_path }}"
|
shell: |
|
||||||
- name: set certificate group on host via container
|
{{ container_cli }} cp {{ cert_path }} {{ item }}:{{ cert_path }}
|
||||||
command: "{{ container_cli }} exec --user root {{container_id.stdout}} chgrp haproxy {{ cert_path }}"
|
{{ container_cli }} exec --user root {{ item }} chgrp haproxy {{ cert_path }}
|
||||||
- name: send restart order to haproxy container
|
{{ container_cli }} kill --signal=HUP {{ item }}
|
||||||
command: "{{ container_cli }} kill --signal=HUP {{ container_id.stdout }}"
|
with_items: "{{ container_id.stdout.split('\n') }}"
|
||||||
|
|
Loading…
Reference in New Issue