We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bb4d9f commit cf6773bCopy full SHA for cf6773b
1 file changed
ansible/roles/wait_for_container_exit/tasks/main.yml
@@ -6,18 +6,9 @@
6
register: container_ids
7
8
- name: wait for container to stop
9
- become: yes
10
- script: findTagRunning.sh {{ container_image }}
11
- register: result
12
tags: deploy
13
- until: result.stdout_lines|length == 0
14
- retries: 100
15
- delay: 1
16
-
17
-- name: get container exit code
18
- tags: deploy
19
- become: true
20
- command: docker inspect -f {% raw %}{{.State.ExitCode}}{% endraw %} {{ container_ids.stdout_lines[0] }}
+ become: yes
+ command: docker wait {{ container_ids.stdout | trim }}
21
register: container_exit_code
22
23
- name: get logs
0 commit comments