Skip to content

Commit

Permalink
Right way to fix docker-compose timeout bug workaround docker/compose…
Browse files Browse the repository at this point in the history
  • Loading branch information
d3vilh committed May 4, 2023
1 parent 69caeda commit b3846b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 5 additions & 0 deletions main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
when:
- ansible_facts.os_family == "Archlinux"

# Docker-compose timeout bug workaround https://github.com/docker/compose/issues/3927
- name: Docker-compose timeout WA
shell: 'export DOCKER_CLIENT_TIMEOUT=180 && export COMPOSE_HTTP_TIMEOUT=180'
ignore_errors: true

handlers:
- name: Include handlers
ansible.builtin.import_tasks: tasks/handlers.yml
Expand Down
6 changes: 0 additions & 6 deletions tasks/pi-hole.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@
state: started
when: pihole_with_unbound == true and container_id.rc == 1

# Docker-compose timeout bug workaround https://github.com/docker/compose/issues/3927
- name: Docker-compose timeout WA
shell: 'export DOCKER_CLIENT_TIMEOUT=180 && export COMPOSE_HTTP_TIMEOUT=180'
ignore_errors: true
when: pihole_with_unbound == true

- name: Ensure Pi-hole is running.
community.docker.docker_compose:
project_src: "{{ config_dir }}/pi-hole/"
Expand Down

0 comments on commit b3846b3

Please sign in to comment.