mirror of
https://github.com/spantaleev/matrix-docker-ansible-deploy.git
synced 2026-11-05 21:24:14 +00:00
matrix-synapse-auto-compressor: wait for both networks before inspecting the Molecule container
The unit creates the container and attaches additional networks in later ExecStartPre steps. Verify could inspect it in between and flakily fail the network contract assertion. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
5e6d9e6bf8
commit
b449d86c72
@@ -413,7 +413,9 @@
|
||||
no_block: true
|
||||
changed_when: true
|
||||
|
||||
- name: Wait for the transient compressor container to become inspectable
|
||||
# The unit creates the container first and attaches additional networks in later ExecStartPre steps.
|
||||
# Waiting for both networks avoids inspecting the container in between.
|
||||
- name: Wait for the transient compressor container to become inspectable with both networks attached
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- docker
|
||||
@@ -422,7 +424,9 @@
|
||||
- matrix-synapse-auto-compressor
|
||||
register: matrix_synapse_auto_compressor_container_inspect
|
||||
changed_when: false
|
||||
until: matrix_synapse_auto_compressor_container_inspect.rc == 0
|
||||
until: >-
|
||||
matrix_synapse_auto_compressor_container_inspect.rc == 0
|
||||
and ((matrix_synapse_auto_compressor_container_inspect.stdout | from_json | first).NetworkSettings.Networks | length) == 2
|
||||
retries: 30
|
||||
delay: 1
|
||||
failed_when: false
|
||||
|
||||
Reference in New Issue
Block a user