Update update-apt-packages.yaml

This commit is contained in:
2025-09-17 10:34:10 +05:30
parent 376522f03c
commit 7d2b916af1
+11 -6
View File
@@ -1,9 +1,14 @@
--- ---
- hosts: all - name: Update and upgrade apt packages
hosts: all
become: true
tasks: tasks:
- name: update apt packages - name: Update packages with apt
apt: when: ansible_pkg_mgr == 'apt'
upgrade: yes ansible.builtin.apt:
update_cache: yes update_cache: true
- name: Upgrade packages with apt
when: ansible_pkg_mgr == 'apt'
ansible.builtin.apt:
upgrade: dist