20 lines
499 B
YAML
20 lines
499 B
YAML
|
---
|
|||
|
- 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›
|
|||
|
community.general.packaging.os.zypper:
|
|||
|
name: "*"
|
|||
|
state: latest
|
|||
|
when: ansible_distribution == "openSUSE"
|