Skip to content

Instantly share code, notes, and snippets.

@seraphyn
Created September 23, 2021 15:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seraphyn/cbfd0ef7e7ee65a090a22a9d341479fa to your computer and use it in GitHub Desktop.
Save seraphyn/cbfd0ef7e7ee65a090a22a9d341479fa to your computer and use it in GitHub Desktop.
Zeige upgradefähige Pakete auf deb-basierte Servern und gebe sie aus
- hosts: servers
tasks:
- name:
apt:
update_cache: yes
- name:
command: apt list --upgradable
register: updates
- debug: var=updates.stdout_lines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment