2023-08-27 11:43:02 +02:00
|
|
|
|
---
|
|
|
|
|
- name: Upgrade all packages with ‹apt›
|
|
|
|
|
ansible.builtin.apt:
|
|
|
|
|
name: "*"
|
|
|
|
|
state: latest
|
|
|
|
|
update_cache: true
|
2024-11-18 15:09:53 +01:00
|
|
|
|
when: ansible_distribution in [ "Debian", "Ubuntu" ]
|
2023-08-27 11:43:02 +02:00
|
|
|
|
|
|
|
|
|
- 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"
|