Zeige upgradefähige Pakete auf deb-basierte Servern und gebe sie aus
This file contains 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