try
Some checks failed
Deploy to ras-dan-01 / deploy (push) Failing after -25s

This commit is contained in:
2025-08-26 15:47:30 +02:00
parent 29d8f61c85
commit 731016f241

View File

@@ -54,18 +54,18 @@
containers: true containers: true
containers_all: true containers_all: true
register: host_info register: host_info
until: (host_info.ansible_facts.docker_containers | selectattr('Labels.com.docker.compose.project', 'equalto', project_name) | list | length) >= 2 until: (host_info.containers | selectattr('Labels.com.docker.compose.project', 'equalto', project_name) | list | length) >= 2
retries: 10 retries: 10
delay: 5 delay: 5
- name: Debug container_info - name: Debug container_info
ansible.builtin.debug: ansible.builtin.debug:
var: host_info.ansible_facts.docker_containers var: host_info.containers
- 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.ansible_facts.docker_containers | selectattr('Labels.com.docker.compose.project', 'equalto', project_name) | selectattr('Names', 'match', '.*-web-.*') | first).State.Running - (host_info.containers | selectattr('Labels.com.docker.compose.project', 'equalto', project_name) | selectattr('Names', 'match', '.*-web-.*') | first).State.Running
- (host_info.ansible_facts.docker_containers | selectattr('Labels.com.docker.compose.project', 'equalto', project_name) | selectattr('Names', 'match', '.*-db-.*') | first).State.Running - (host_info.containers | selectattr('Labels.com.docker.compose.project', 'equalto', project_name) | selectattr('Names', 'match', '.*-db-.*') | first).State.Running