update apt playbook

This commit is contained in:
Matt Reeves 2025-01-12 22:55:55 -05:00
parent ccc8547e4d
commit 3d94aee458

View file

@ -1,7 +1,17 @@
- hosts: "*" ---
- name: Weekly System Update
hosts: all
become: true become: true
tasks: tasks:
- name: apt - name: Update apt cache
apt: apt:
update_cache: yes update_cache: yes
upgrade: 'yes'
- name: Upgrade all packages
apt:
upgrade: dist
- name: Remove unnecessary packages
apt:
autoremove: yes
purge: yes