summaryrefslogtreecommitdiff
path: root/roles/greenbone
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-01-26 12:52:19 +0100
committerChristian Pointner <equinox@spreadspace.org>2024-01-26 12:52:19 +0100
commit8a53c60099fde1bb6f8db25faafcf8694481b562 (patch)
treeccff1a4896ba552a05607e4f80889bf03661a68b /roles/greenbone
parentwhawty/auth/store: rsync is only needed if sync is enabled (diff)
greenbone: clean up old containers on update and add machine to monitoring
Diffstat (limited to 'roles/greenbone')
-rw-r--r--roles/greenbone/server/tasks/main.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/greenbone/server/tasks/main.yml b/roles/greenbone/server/tasks/main.yml
index 090f2746..f95d9df6 100644
--- a/roles/greenbone/server/tasks/main.yml
+++ b/roles/greenbone/server/tasks/main.yml
@@ -68,6 +68,9 @@
echo "update queued successfully."
echo "Please also read: https://greenbone.github.io/docs/latest/22.4/container/workflows.html#performing-a-feed-synchronization"
+ echo ""
+ echo "cleaning up unused/old containers and images ..."
+ docker system prune -f
exit 0
dest: "/usr/local/bin/update-greenbone.{{ greenbone_server_hostname }}"
mode: 0755