added 'purge' to debian apt actions

This commit is contained in:
2026-07-22 14:06:20 +02:00
parent f4b01c2f4a
commit 25593dafa0

View File

@@ -56,6 +56,12 @@
#changed_when: false #changed_when: false
when: ansible_facts['distribution'] in ["Debian", "Ubuntu", "Linux Mint"] when: ansible_facts['distribution'] in ["Debian", "Ubuntu", "Linux Mint"]
ignore_errors: True ignore_errors: True
- name: pre-run | remove old packages (debian, ubuntu, etc.)
ansible.builtin.apt:
autoremove: true
purge: true
when: ansible_facts['distribution'] in ["Debian", "Ubuntu", "Linux Mint"]
ignore_errors: True
- name: pre-run | upgrade system (arch) - name: pre-run | upgrade system (arch)
community.general.pacman: upgrade=true community.general.pacman: upgrade=true
when: ansible_facts['distribution'] == 'Archlinux' when: ansible_facts['distribution'] == 'Archlinux'