try
All checks were successful
Deploy to ras-dan-01 / deploy (push) Successful in -21s

This commit is contained in:
2025-08-26 15:59:16 +02:00
parent a94afc0b61
commit 201b086167

View File

@@ -54,7 +54,7 @@
containers: true containers: true
containers_all: true containers_all: true
register: host_info register: host_info
until: host_info.containers is defined and (host_info.containers | length) >= 2 until: (host_info.containers | selectattr('Names', 'match', '.*-web') | list | length) >= 1 and (host_info.containers | selectattr('Names', 'match', '.*-db') | list | length) >= 1
retries: 10 retries: 10
delay: 5 delay: 5
@@ -65,7 +65,7 @@
- name: Verify that web and db services are running - name: Verify that web and db services are running
ansible.builtin.assert: ansible.builtin.assert:
that: that:
- (host_info.containers | selectattr('Config.Labels.com.docker.compose.project', 'equalto', project_name) | selectattr('Names', 'match', '.*-web-.*') | first).State.Running - (host_info.containers | selectattr('Names', 'match', '.*-web') | first).Status is search('Up')
- (host_info.containers | selectattr('Config.Labels.com.docker.compose.project', 'equalto', project_name) | selectattr('Names', 'match', '.*-db-.*') | first).State.Running - (host_info.containers | selectattr('Names', 'match', '.*-db') | first).Status is search('Up')