From 9724100223dae40ce9aafc2ec60c029f2fc409cc Mon Sep 17 00:00:00 2001 From: jonnybravo Date: Thu, 20 Mar 2025 15:48:06 +0100 Subject: [PATCH] finsh --- start.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/start.yml b/start.yml index 3c0075a..141ae94 100644 --- a/start.yml +++ b/start.yml @@ -18,13 +18,19 @@ project_name: "{{docker_project_name}}" recreate: always register: compose_output - - name: Show output - debug: - var: compose_output + + #- name: Show output + # debug: + # var: compose_output + # - name: "check this" + # debug: + # msg: + # - "{{ compose_output.containers | selectattr('Service', 'equalto', 'python-app')| first }}" + - name: Verify that web and db services are running ansible.builtin.assert: that: - pythonapp.State == 'running' vars: pythonapp: >- - {{ output.containers | selectattr("Service", "python-app") | first }} + {{ compose_output.containers | selectattr("Service","equalto", "python-app") | first }}