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:
Łukasz Oleś 2016-01-15 10:59:21 +01:00
parent 9443b7d047
commit 9b08ac1a9d

View File

@ -37,7 +37,7 @@
{% endif %} {% endif %}
- name: Waiting for app in container - name: Waiting for app in container
when: {{wait_cmd}} when: '"{{wait_cmd|e}}" != "None"'
shell: docker exec -t {{ resource_name }} {{wait_cmd}} shell: docker exec -t {{ resource_name }} {{wait_cmd}}
register: result register: result
until: result.rc == 0 until: result.rc == 0