dotfiles/roles/base_system/tasks/upgrade.yml

20 lines
454 B
YAML
Raw Permalink Normal View History

---
- name: Upgrade all packages with apt
ansible.builtin.apt:
name: "*"
state: latest
update_cache: true
when: ansible_facts.pkg_mgr == "apt"
- name: Upgrade all packages with dnf
ansible.builtin.dnf:
name: "*"
state: latest
when: ansible_facts.pkg_mgr == "dnf"
- name: Upgrade all packages with zypper
community.general.zypper:
name: "*"
state: latest
when: ansible_facts.pkg_mgr == "zypper"