diff options
author | Christian Pointner <equinox@spreadspace.org> | 2024-01-26 12:52:19 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2024-01-26 12:52:19 +0100 |
commit | 8a53c60099fde1bb6f8db25faafcf8694481b562 (patch) | |
tree | ccff1a4896ba552a05607e4f80889bf03661a68b /roles/greenbone/server | |
parent | whawty/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/server')
-rw-r--r-- | roles/greenbone/server/tasks/main.yml | 3 |
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 |