From 68e6587ea198a1f7543c38d1c7609a320ac26d05 Mon Sep 17 00:00:00 2001 From: Ryan Moon Date: Tue, 31 Mar 2026 20:34:54 -0500 Subject: [PATCH] Add os-update playbook --- .gitea/workflows/ansible.yml | 1 + ansible/os-update.yml | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 ansible/os-update.yml diff --git a/.gitea/workflows/ansible.yml b/.gitea/workflows/ansible.yml index f018581..7ce1612 100644 --- a/.gitea/workflows/ansible.yml +++ b/.gitea/workflows/ansible.yml @@ -17,6 +17,7 @@ on: - gitea.yml - vaultwarden.yml - runner.yml + - os-update.yml jobs: ansible: diff --git a/ansible/os-update.yml b/ansible/os-update.yml new file mode 100644 index 0000000..719c29b --- /dev/null +++ b/ansible/os-update.yml @@ -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