From 95fe09aa726a74d550600f4c5417a852a3b4621a Mon Sep 17 00:00:00 2001 From: Jose Date: Sun, 2 Nov 2025 11:59:14 +0100 Subject: [PATCH] =?UTF-8?q?chore=20=F0=9F=93=A6:=20Update=20package=20mana?= =?UTF-8?q?ger=20and=20cleanup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the package manager to use apt, added commands to update all packages to their latest version, remove useless packages from the cache, and remove dependencies that are no longer required. This should improve the overall efficiency of the setup process. --- tasks/setupacdc.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/tasks/setupacdc.yml b/tasks/setupacdc.yml index 40c73dd..7e8ad9a 100644 --- a/tasks/setupacdc.yml +++ b/tasks/setupacdc.yml @@ -99,7 +99,8 @@ # state: present # loop: "{{ ssh_public_keys }}" - - name: Update and install useful packages + + - name: Install useful packages ansible.builtin.package: name: - nano @@ -107,6 +108,20 @@ # - openssh-server state: present + - name: Update all packages to their latest version + ansible.builtin.apt: + name: "*" + state: latest + + - name: Remove useless packages from the cache + ansible.builtin.apt: + autoclean: yes + + - name: Remove dependencies that are no longer required and purge their configuration files + ansible.builtin.apt: + autoremove: yes + purge: true + - name: Set timezone to {{ localization_timezone }} community.general.timezone: name: "{{ localization_timezone }}"