diff --git a/deploy_remote.yml b/deploy_remote.yml index 5b35a23..4dd63c7 100644 --- a/deploy_remote.yml +++ b/deploy_remote.yml @@ -54,18 +54,18 @@ containers: true containers_all: true 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 delay: 5 - name: Debug container_info ansible.builtin.debug: - var: host_info.ansible_facts.docker_containers + var: host_info.containers - name: Verify that web and db services are running ansible.builtin.assert: 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.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', '.*-web-.*') | first).State.Running + - (host_info.containers | selectattr('Labels.com.docker.compose.project', 'equalto', project_name) | selectattr('Names', 'match', '.*-db-.*') | first).State.Running