added apt update, upgrade & clean

This commit is contained in:
Carlos Sousa 2023-03-10 00:50:26 +01:00
parent 4f641e6902
commit 2d981c2f82
3 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,7 @@
# Apt Cache Time
# Default: 43200 (12 hours)
apt_cache_valid_time: 43200
# Timezone
server_timezone: Europe/Berlin

View File

@ -7,7 +7,10 @@
tasks:
- name: Import Software Tasks
include_tasks: tasks/software/package-utilities.yml
include_tasks: "{{ item }}"
loop:
- tasks/software/package-manager.yml
- tasks/software/package-utilities.yml
- name: Import Users Tasks
include_tasks: tasks/users/docker-user.yml

View File

@ -0,0 +1,8 @@
- name: system setup | package manager | update, upgrade and clean
apt:
name: "*"
state: latest
update_cache: yes
cache_valid_time: "{{ apt_cache_valid_time }}"
autoclean: yes
autoremove: yes