Ansible-Playbooks/Get-Upgrades.yaml hinzugefügt

This commit is contained in:
2025-07-07 11:54:22 +02:00
parent ee7165db56
commit 49f4211280

View File

@@ -0,0 +1,14 @@
- name: Get Upgrades
hosts: homelab
tasks:
- name: Get available Updates
ansible.builtin.shell:
cmd: apt update >/dev/null 2>/dev/null
- name: List available Updates
ansible.builtin.shell:
cmd: apt list --upgradable 2>/dev/null
- name: Install available Updates
ansible.builtin.shell:
cmd: apt upgrade 2>/dev/null