Update playbooks/update-packages.yml

This commit is contained in:
2024-04-29 18:27:11 +05:30
parent 4eccad287a
commit bd443663bd

View File

@@ -7,11 +7,13 @@
- name: Update cache
apt:
update_cache: yes
when: ansible_distribution == 'Debian'
when:
- ansible_distribution == 'Debian'
- ansible_distribution == 'Ubuntu'
- name: Upgrade packages
apt:
name: "*"
state: latest
when:
- ansible_distribution == 'Debian'
- ansible_distribution == 'Ubuntu'
- ansible_distribution == 'Ubuntu'