mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Optimized .mds and meta/main.yml for cleanup roles
This commit is contained in:
@@ -1,4 +1,24 @@
|
||||
# cleanup-disc-space
|
||||
Frees disc space
|
||||
## More information
|
||||
- https://askubuntu.com/questions/380238/how-to-clean-tmp
|
||||
# Cleanup Disc Space
|
||||
|
||||
## Description
|
||||
|
||||
This role frees disk space by executing a script that cleans up temporary files, clears package caches, and optionally cleans up backup directories and Docker resources when disk usage exceeds a specified threshold.
|
||||
|
||||
## Overview
|
||||
|
||||
Optimized for efficient storage management, this role:
|
||||
- Creates a directory for disk cleanup scripts.
|
||||
- Deploys a Bash script that frees disk space by cleaning up /tmp, Docker resources, and pacman cache.
|
||||
- Configures a systemd service to run the disk cleanup script.
|
||||
- Optionally integrates with backup cleanup if backup variables are defined.
|
||||
|
||||
## Purpose
|
||||
|
||||
The primary purpose of this role is to ensure that disk space remains within safe limits by automating cleanup tasks, thereby improving system performance and stability.
|
||||
|
||||
## Features
|
||||
|
||||
- **Automated Cleanup:** Executes a script to remove temporary files and clear caches.
|
||||
- **Threshold-Based Execution:** Triggers cleanup when disk usage exceeds a defined percentage.
|
||||
- **Systemd Integration:** Configures a systemd service to manage the disk cleanup process.
|
||||
- **Docker and Backup Integration:** Optionally cleans Docker resources and backups if configured.
|
||||
|
@@ -1,3 +1,26 @@
|
||||
---
|
||||
galaxy_info:
|
||||
author: "Kevin Veen-Birkenbach"
|
||||
description: "Frees disk space on the target system by executing a cleanup script that removes temporary files, clears package caches, and optionally handles Docker and backup cleanup."
|
||||
license: "CyMaIS NonCommercial License (CNCL)"
|
||||
license_url: "https://s.veen.world/cncl"
|
||||
company: |
|
||||
Kevin Veen-Birkenbach
|
||||
Consulting & Coaching Solutions
|
||||
https://www.veen.world
|
||||
min_ansible_version: "2.9"
|
||||
platforms:
|
||||
- name: Linux
|
||||
versions:
|
||||
- all
|
||||
galaxy_tags:
|
||||
- disk
|
||||
- cleanup
|
||||
- storage
|
||||
- automation
|
||||
repository: "https://s.veen.world/cymais"
|
||||
issue_tracker_url: "https://s.veen.world/cymaisissues"
|
||||
documentation: "https://s.veen.world/cymais"
|
||||
dependencies:
|
||||
- systemd-notifier
|
||||
- system-maintenance-lock
|
||||
|
Reference in New Issue
Block a user