Files
mw-pfeddersheim-workstation/ansible/roles/maintenance/tasks/main.yml
T

28 lines
710 B
YAML

---
- name: Cleanup legacy VS Code remnants
ansible.builtin.file:
path: "{{ item }}"
state: absent
loop:
- "/home/mw/.vscode-oss"
- "/home/mw/.vscode"
- "/home/mw/.config/Code"
- "/home/mw/.config/Code - OSS"
- name: Cleanup legacy local AI tools
ansible.builtin.file:
path: "{{ item }}"
state: absent
loop:
- "/home/mw/.local/share/ollama"
- "/home/mw/.ollama"
- name: System maintenance tasks
ansible.builtin.command:
cmd: "{{ item }}"
loop:
- "paccache -r"
- "journalctl --vacuum-time=7d"
register: maintenance_result
changed_when: "'deleted' in maintenance_result.stdout or 'Vacuuming' in maintenance_result.stdout"
failed_when: false