This commit is contained in:
@@ -52,9 +52,9 @@
|
||||
- name: Verify that web and db services are running
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- pythonapp.State == 'running'
|
||||
vars:
|
||||
pythonapp: >-
|
||||
{{ compose_output.containers | selectattr("Service","equalto", "movie-db-web") | first }}
|
||||
- "movie-db-web" in compose_output.services
|
||||
- compose_output.services["movie-db-web"].state == "running"
|
||||
- "movie-db-db" in compose_output.services
|
||||
- compose_output.services["movie-db-db"].state == "running"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user