mirror of
https://github.com/koodiklinikka/playbooks.git
synced 2026-02-15 02:53:12 +00:00
hotfix for detecting currently running container :)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user