use apt module over command for dist upgrade

This commit is contained in:
2024-10-05 09:11:36 +00:00
parent a95199ac9c
commit c78513392f

View File

@@ -8,7 +8,8 @@
apt:
update_cache: yes
- name: Dist-upgrade
command: sudo apt dist-upgrade
apt:
upgrade: dist
- name: Autoremove packages
apt:
autoremove: yes