From 347df8c1768417c0b954dfbb6eae25433abc6f98 Mon Sep 17 00:00:00 2001 From: Stefan Haun Date: Sat, 12 Dec 2020 17:03:46 +0100 Subject: [PATCH] Setup apt-cacher-ng container --- pottwal.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pottwal.yml b/pottwal.yml index 941b190..066f494 100644 --- a/pottwal.yml +++ b/pottwal.yml @@ -17,6 +17,17 @@ - role: apache tasks: + - name: Ensure apt-cacher container is running + docker_container: + name: apt_cacher_ng + image: "mrtux/apt-cacher-ng" + pull: true + state: started + restart_policy: unless-stopped + detach: yes + ports: + - 3142:3142 + - name: Ensure the openhab directories exist file: path: "{{ item }}"