hotfix for detecting currently running container :)

This commit is contained in:
Niko Kurtti
2015-03-29 14:21:21 +03:00
parent c5b2563474
commit 1af1535131
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@
when: container is defined and container.changed and current_image_sha.stdout != ""
- name: get running container
shell: docker ps -a|grep {{ koodiklinikka_api_container_name }}|grep latest| awk '{print $1}'
shell: docker ps |grep {{ koodiklinikka_api_container_name }}| awk '{print $1}'
register: current_container_id
- name: kill old version

View File

@@ -27,7 +27,7 @@
when: container is defined and container.changed and current_image_sha.stdout != ""
- name: get running container
shell: docker ps -a|grep {{ koodiklinikka_tohtori_container_name }}|grep latest| awk '{print $1}'
shell: docker ps |grep {{ koodiklinikka_tohtori_container_name }}| awk '{print $1}'
register: current_container_id
- name: kill old version