Skip to content

Instantly share code, notes, and snippets.

@smathermather
Last active Jul 29, 2021
Embed
What would you like to do?
---
- name: Run updates on Ubuntu Machines
hosts: cslab135
become: true
tasks:
- name: Running updates
apt:
# equivalent to sudo apt update
update_cache: yes
# equivalent to sudo apt upgrade
upgrade: safe
# equivalent to sudo apt autoremove
autoremove: yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment