mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 02:10:05 +00:00 
			
		
		
		
	- install via pkgmgr (CLEANUP_FAILED_BACKUPS_PKG=cleanback)
- run: cleanback --all --dirval-cmd dirval --workers {{ CLEANUP_FAILED_BACKUPS_WORKERS }} --timeout {{ CLEANBACK_TIMEOUT_SECONDS }} --yes
- remove obsolete systemctl template and path set_fact logic
- keep task variable names intact; no defaults for runtime knobs
- update README to reflect new behavior
Conversation: https://chatgpt.com/share/68c309bf-8818-800f-84d9-c4aa74a4544c
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			758 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			758 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| # Cleanup Failed Backups
 | |
| 
 | |
| This role installs and runs the **cleanback** CLI to validate and delete **failed Docker backups** under `/Backups/*/backup-docker-to-local`.  
 | |
| Validation is performed via `dirval`; failures can be removed automatically in a non-interactive service execution.
 | |
| 
 | |
| ## Behavior
 | |
| - Installs `cleanback` via `pkgmgr`.
 | |
| - Runs `cleanback` (`main.py`) as a **systemd oneshot** service.
 | |
| - Executes `--all` with `--yes` so failing directories are deleted automatically.
 | |
| - **No defaults** for runtime knobs:
 | |
|   - `CLEANBACK_TIMEOUT_SECONDS` (required)
 | |
|   - `SYS_SCHEDULE_CLEANUP_FAILED_BACKUPS` (required)
 | |
| - **Workers** (`CLEANUP_FAILED_BACKUPS_WORKERS`) are **derived from Ansible facts only** (no arbitrary defaults). Facts **must** be gathered.
 |