Dateien nach "/" hochladen

This commit is contained in:
2025-06-01 21:32:46 +02:00
commit b63f995241

32
apt-dist.yml Normal file
View File

@ -0,0 +1,32 @@
---
- name: apt dist-upgrade Debian based servers
hosts:
- pve01_debian
tasks:
- name: Update package lists
apt:
update_cache: yes
- name: Only run "update_cache=yes" if the last one is more than 3600 seconds ago
apt:
update_cache: yes
cache_valid_time: 3600
- name: Upgrade all Packages
apt:
upgrade: dist
- name: Pass options to dpkg on run
apt:
upgrade: dist
update_cache: yes
dpkg_options: 'force-confold,force-confdef'
- name: Autoremove unused packages
become: yes
command: apt -y autoremove
- name: Removes all packages from the package cache
become: yes
command: apt -y clean
...