Add os-update playbook

This commit is contained in:
Ryan Moon
2026-03-31 20:34:54 -05:00
parent 99348d9eaa
commit 68e6587ea1
2 changed files with 16 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ on:
- gitea.yml
- vaultwarden.yml
- runner.yml
- os-update.yml
jobs:
ansible:

15
ansible/os-update.yml Normal file
View File

@@ -0,0 +1,15 @@
---
- name: OS updates
hosts: infra
become: true
tasks:
- name: Update apt cache and upgrade packages
apt:
update_cache: true
upgrade: safe
- name: Remove unused packages
apt:
autoremove: true
purge: true