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 - name: Update cache
apt: apt:
update_cache: yes update_cache: yes
when: ansible_distribution == 'Debian' when:
- ansible_distribution == 'Debian'
- ansible_distribution == 'Ubuntu'
- name: Upgrade packages - name: Upgrade packages
apt: apt:
name: "*" name: "*"
state: latest state: latest
when: when:
- ansible_distribution == 'Debian' - ansible_distribution == 'Debian'
- ansible_distribution == 'Ubuntu' - ansible_distribution == 'Ubuntu'