2023-08-27 11:43:02 +02:00
|
|
|
|
---
|
|
|
|
|
- name: Upgrade all packages with ‹apt›
|
|
|
|
|
ansible.builtin.apt:
|
|
|
|
|
name: "*"
|
|
|
|
|
state: latest
|
|
|
|
|
update_cache: true
|
|
|
|
|
when: ansible_distribution == "Ubuntu"
|
|
|
|
|
|
|
|
|
|
- name: Upgrade all packages with ‹dnf›
|
|
|
|
|
ansible.builtin.dnf:
|
|
|
|
|
name: "*"
|
|
|
|
|
state: latest
|
|
|
|
|
when: ansible_distribution in [ "AlmaLinux", "CentOS", "Fedora" ]
|
|
|
|
|
|
|
|
|
|
- name: Upgrade all packages with ‹zypper›
|
2023-09-09 15:23:08 +02:00
|
|
|
|
community.general.zypper:
|
2023-08-27 11:43:02 +02:00
|
|
|
|
name: "*"
|
|
|
|
|
state: latest
|
2023-09-09 15:23:08 +02:00
|
|
|
|
when: "'openSUSE' in ansible_distribution"
|