Created
September 23, 2021 15:24
-
-
Save seraphyn/cbfd0ef7e7ee65a090a22a9d341479fa to your computer and use it in GitHub Desktop.
Zeige upgradefähige Pakete auf deb-basierte Servern und gebe sie aus
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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