diff --git a/roles/docker_cleanup/README.md b/roles/docker_cleanup/README.md deleted file mode 100644 index b0d383a..0000000 --- a/roles/docker_cleanup/README.md +++ /dev/null @@ -1,24 +0,0 @@ -docker_cleanup -========= - -This will prune unused docker images older than 3 days, to keep the system clean. - -Requirements ------------- - -You will need to have docker installed with its python package to use this role. - -Role Variables --------------- - -None - -Dependencies ------------- - -- docker - -License -------- - -GPL-3.0-only diff --git a/roles/docker_cleanup/meta/main.yml b/roles/docker_cleanup/meta/main.yml deleted file mode 100644 index 71fcc64..0000000 --- a/roles/docker_cleanup/meta/main.yml +++ /dev/null @@ -1,43 +0,0 @@ -galaxy_info: - author: Christoph Kern - description: "Cleans up the exsting Docker install" - license: GPL-3.0-only - min_ansible_version: "2.9" - standalone: true - - platforms: - - name: EL - versions: - - all - - name: GenericUNIX - versions: - - all - - name: Fedora - versions: - - all - - name: opensuse - versions: - - all - - name: GenericBSD - versions: - - all - - name: FreeBSD - versions: - - all - - name: Ubuntu - versions: - - all - - name: SLES - versions: - - all - - name: GenericLinux - versions: - - all - - name: Debian - versions: - - all - - galaxy_tags: [] - -dependencies: - - role: docker diff --git a/roles/docker_cleanup/tasks/main.yml b/roles/docker_cleanup/tasks/main.yml deleted file mode 100644 index 99a2ea3..0000000 --- a/roles/docker_cleanup/tasks/main.yml +++ /dev/null @@ -1,25 +0,0 @@ ---- - -# Infrastructure -# Ansible instructions to deploy the infrastructure -# Copyright (C) 2019-2020 Christoph (Sheogorath) Kern -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, version 3 of the License. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -- name: Prune docker images older than 3 days - community.docker.docker_prune: - images: true - images_filters: - dangling: false - until: 72h - become: true