Fix check if wait_cmd was defined
In when statement ansible expects bool value. If wait command was not defined None is returned.
This commit is contained in:
parent
9443b7d047
commit
9b08ac1a9d
@ -37,7 +37,7 @@
|
||||
{% endif %}
|
||||
|
||||
- name: Waiting for app in container
|
||||
when: {{wait_cmd}}
|
||||
when: '"{{wait_cmd|e}}" != "None"'
|
||||
shell: docker exec -t {{ resource_name }} {{wait_cmd}}
|
||||
register: result
|
||||
until: result.rc == 0
|
||||
|
Loading…
Reference in New Issue
Block a user