From 3d94aee458afc0e79640cb0c21b53cb05f05b831 Mon Sep 17 00:00:00 2001 From: Mafyuh Date: Sun, 12 Jan 2025 22:55:55 -0500 Subject: [PATCH] update apt playbook --- ansible/playbooks/weekly/apt.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/ansible/playbooks/weekly/apt.yml b/ansible/playbooks/weekly/apt.yml index 673acbe..3863d29 100644 --- a/ansible/playbooks/weekly/apt.yml +++ b/ansible/playbooks/weekly/apt.yml @@ -1,7 +1,17 @@ -- hosts: "*" +--- +- name: Weekly System Update + hosts: all become: true tasks: - - name: apt + - name: Update apt cache apt: update_cache: yes - upgrade: 'yes' \ No newline at end of file + + - name: Upgrade all packages + apt: + upgrade: dist + + - name: Remove unnecessary packages + apt: + autoremove: yes + purge: yes