From cc41217ad888c67fc3e2afeb1e8f07e73f989f91 Mon Sep 17 00:00:00 2001
From: Alexander Dahl <alex@netz39.de>
Date: Sat, 22 Feb 2025 12:58:20 +0100
Subject: [PATCH] :wrench: Enable automatic docker image prune again

The feature was part of the old role but unconditionally.  When porting
to external role we made it optional with variable
`docker_cron_image_prune` but default to false.  Restore the previous
behaviour in this playbook.
---
 group_vars/docker_host/vars.yml | 1 +
 host-wittgenstein.yml           | 1 +
 2 files changed, 2 insertions(+)

diff --git a/group_vars/docker_host/vars.yml b/group_vars/docker_host/vars.yml
index 2978231..5be6933 100644
--- a/group_vars/docker_host/vars.yml
+++ b/group_vars/docker_host/vars.yml
@@ -1,2 +1,3 @@
 ---
 docker_data_root: "/srv/docker"
+docker_cron_image_prune: true
diff --git a/host-wittgenstein.yml b/host-wittgenstein.yml
index 5557893..1676da0 100644
--- a/host-wittgenstein.yml
+++ b/host-wittgenstein.yml
@@ -6,6 +6,7 @@
     - role: netz39.host_docker
       vars:
         docker_data_root: "/srv/docker"
+        docker_cron_image_prune: true
     - role: apache
     - role: apache_letsencrypt  # Uses configuration from dehydrated setup
     - role: 24367dfa.dehydrated