dotfiles/roles/system/base/tasks/upgrade.yml
Matej Focko e4f00dc77c
fix(system/base): fix openSUSE upgrades
Signed-off-by: Matej Focko <mfocko@redhat.com>
2023-09-09 15:23:08 +02:00

19 lines
488 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
- 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.zypper:
name: "*"
state: latest
when: "'openSUSE' in ansible_distribution"