Add wait command to docker_container
This commit is contained in:
parent
d51faddb24
commit
1f0b17937e
@ -35,3 +35,11 @@
|
|||||||
{{ key }}: {{ value }}
|
{{ key }}: {{ value }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
- name: Waiting for app in container
|
||||||
|
when: {{wait_cmd}}
|
||||||
|
shell: docker exec -t {{ resource_name }} {{wait_cmd}}
|
||||||
|
register: result
|
||||||
|
until: result.rc == 0
|
||||||
|
retries: 30
|
||||||
|
delay: 0.5
|
||||||
|
@ -19,11 +19,12 @@ input:
|
|||||||
env:
|
env:
|
||||||
schema: {}
|
schema: {}
|
||||||
value: {}
|
value: {}
|
||||||
# ssh_user:
|
wait_cmd:
|
||||||
# schema: str!
|
schema: str
|
||||||
# value: []
|
value: null
|
||||||
# ssh_key:
|
computable:
|
||||||
# schema: str!
|
lang: jinja2
|
||||||
# value: []
|
type: full
|
||||||
|
func: ""
|
||||||
|
|
||||||
tags: [resource/container]
|
tags: [resource/container]
|
||||||
|
Loading…
Reference in New Issue
Block a user