hac/ansible/upgrade.yml
Ada c2b15b5eaa
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Add upgrade playbook
2024-04-22 18:02:01 +02:00

16 lines
372 B
YAML

---
- name: Upgreade
hosts: all
become: true
tasks:
- name: Ugrade debian based
ansible.builtin.apt:
update_cache: true
upgrade: true
when: ansible_facts['os_family'] == "Debian"
- name: Upgrade all packages
ansible.builtin.dnf:
name: "*"
state: latest
when: ansible_facts['os_family'] == "RedHat"