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:
- name: update apt packages
apt:
upgrade: yes
update_cache: yes
- name: Update packages with apt
when: ansible_pkg_mgr == 'apt'
ansible.builtin.apt:
update_cache: true
- name: Upgrade packages with apt
when: ansible_pkg_mgr == 'apt'
ansible.builtin.apt:
upgrade: dist