finsh
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in -41s

This commit is contained in:
2025-03-20 15:48:06 +01:00
parent 31fe2145e8
commit 9724100223

View File

@@ -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 }}