Use docker-compose exec -T with ansible tasks
Docker-compose exec allocates a tty by default unlike docker exec. New Ansible doesn't provision a tty which causes docker-compose exec to fail under Ansible now. Address this by passing -T to docker-compose exec commands which stops allocating a tty. We didn't need one to gracefully stop zuul services. Change-Id: Ib52f184f771ae4530f6b6531257dda5d8443043c
This commit is contained in:
parent
6ba64f1d6e
commit
46ba1ff961
@ -9,7 +9,7 @@
|
|||||||
register: executor_container_list
|
register: executor_container_list
|
||||||
- name: Gracefully stop Zuul Executor
|
- name: Gracefully stop Zuul Executor
|
||||||
shell:
|
shell:
|
||||||
cmd: docker-compose exec executor zuul-executor graceful
|
cmd: docker-compose exec -T executor zuul-executor graceful
|
||||||
chdir: /etc/zuul-executor
|
chdir: /etc/zuul-executor
|
||||||
become: true
|
become: true
|
||||||
become_user: root
|
become_user: root
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
register: merger_container_list
|
register: merger_container_list
|
||||||
- name: Gracefully stop Zuul Merger
|
- name: Gracefully stop Zuul Merger
|
||||||
shell:
|
shell:
|
||||||
cmd: docker-compose exec merger zuul-merger stop
|
cmd: docker-compose exec -T merger zuul-merger stop
|
||||||
chdir: /etc/zuul-merger
|
chdir: /etc/zuul-merger
|
||||||
become: true
|
become: true
|
||||||
become_user: root
|
become_user: root
|
||||||
|
Loading…
Reference in New Issue
Block a user