Skip to content

Commit

Permalink
fix condition on task
Browse files Browse the repository at this point in the history
  • Loading branch information
micbar authored Jun 28, 2024
1 parent 9320863 commit f0d3343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/docker-compose-deploy/tasks/docker_compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
- name: create external network
command: "docker network create {{ network_name }}"

when: docker_compose_up.failed and docker_compose_up.stderr is defined and docker_compose_up.stderr is search(".*network .* declared as external, but could not be found.*")
when: docker_compose_up.failed and docker_compose_up.stderr is defined and docker_compose_up.stderr is search(".*network .* not found.*")

# recursive calling of it self in recoverable error cases as long as "until" does not work on includes
- include_tasks: docker_compose.yml
Expand Down

0 comments on commit f0d3343

Please sign in to comment.