added 'apt autoclean' to pre-run tasks for debian and likes

This commit is contained in:
2026-01-29 11:08:27 +01:00
parent 48689bc989
commit 0b32a11fab

View File

@@ -31,7 +31,9 @@
tags: always
- name: pre-run | update apt repository (debian, ubuntu, etc.) # noqa no-changed-when
ansible.builtin.apt: update_cache=yes
ansible.builtin.apt:
update_cache: yes
autoclean: yes
#changed_when: false
when: ansible_facts['distribution'] in ["Debian", "Ubuntu", "Linux Mint"]
ignore_errors: True
@@ -149,7 +151,7 @@
become: true
handlers:
- ansible.builtin.import_tasks: global_handlers/global_handlers.yml
roles:
roles:aide --config /etc/aide/aide.conf --update
- podman
- hosts: drone