Last active
May 18, 2022 00:02
-
-
Save limejuny/6aec7ead6785fc766507a4a56b354173 to your computer and use it in GitHub Desktop.
Ansible: Update and upgrade apt packages
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: all | |
gather_facts: no | |
tasks: | |
- name: Update and upgrade apt packages | |
become: true | |
apt: | |
upgrade: yes | |
update_cache: yes | |
register: aptout | |
- debug: msg="{{ aptout.stdout_lines }}" | |
when: aptout.stdout_lines is defined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment