chore 📦: Update package manager and cleanup
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.
This commit is contained in:
@@ -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 }}"
|
||||
|
||||
Reference in New Issue
Block a user