Update update-apt-packages.yaml

This commit is contained in:
2025-09-17 10:45:44 +05:30
parent 7d2b916af1
commit 46af66cf7d
+7 -11
View File
@@ -1,14 +1,10 @@
--- ---
- name: Update and upgrade apt packages - hosts: all
hosts: all become: true
tasks: tasks:
- name: Update packages with apt - name: Update apt cache and upgrade all packages
when: ansible_pkg_mgr == 'apt' apt:
ansible.builtin.apt: update_cache: yes
update_cache: true
- name: Upgrade packages with apt
when: ansible_pkg_mgr == 'apt'
ansible.builtin.apt:
upgrade: dist upgrade: dist
autoremove: yes
autoclean: yes