Ansible-Playbooks/Get-Upgrades.yaml hinzugefügt
This commit is contained in:
14
Ansible-Playbooks/Get-Upgrades.yaml
Normal file
14
Ansible-Playbooks/Get-Upgrades.yaml
Normal 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
|
||||||
Reference in New Issue
Block a user