Skip to content

Commit

Permalink
Docker-compose timeout bug workaround docker/compose#3927
Browse files Browse the repository at this point in the history
  • Loading branch information
d3vilh committed May 4, 2023
1 parent e663104 commit 69caeda
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tasks/pi-hole.yml
@@ -1,12 +1,12 @@
---
- name: Create Pi-hole folder on Pi.
- name: Create Pi-hole folder on Pi
ansible.builtin.file:
path: "{{ config_dir }}/pi-hole"
state: directory
mode: 0755
become: false

- name: Copy Pi-hole docker-compose template to Pi.
- name: Copy Pi-hole docker-compose template to Pi
ansible.builtin.template:
src: templates/pi-hole-docker-compose.yml.j2
dest: "{{ config_dir }}/pi-hole/docker-compose.yml"
Expand All @@ -28,8 +28,15 @@
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/"
build: false
timeout: 180
become: false

0 comments on commit 69caeda

Please sign in to comment.