Files
ansible-playbooks/update-os/update.yaml
2024-02-02 21:24:08 +01:00

15 lines
348 B
YAML

---
- name: Update Systems
hosts: all
tasks:
- name: Run Apt Update and upgrade where needed
apt:
update_cache: yes
upgrade: yes
when: ansible_distribution == 'Debian'
- name: Run APK update and upgrade
apk:
update_cache: yes
upgrade: true
when: ansible_distribution == 'Alpine'