2023-08-27 11:43:02 +02:00
|
|
|
|
---
|
|
|
|
|
- name: Upgrade all packages with ‹apt›
|
|
|
|
|
ansible.builtin.apt:
|
|
|
|
|
name: "*"
|
|
|
|
|
state: latest
|
|
|
|
|
update_cache: true
|
2024-12-14 20:33:31 +01:00
|
|
|
|
when: ansible_facts.pkg_mgr == "apt"
|
2023-08-27 11:43:02 +02:00
|
|
|
|
|
|
|
|
|
- name: Upgrade all packages with ‹dnf›
|
|
|
|
|
ansible.builtin.dnf:
|
|
|
|
|
name: "*"
|
|
|
|
|
state: latest
|
2024-12-14 20:33:31 +01:00
|
|
|
|
when: ansible_facts.pkg_mgr == "dnf"
|
2023-08-27 11:43:02 +02:00
|
|
|
|
|
|
|
|
|
- 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
|
2024-12-14 20:33:31 +01:00
|
|
|
|
when: ansible_facts.pkg_mgr == "zypper"
|