From b63f99524147df8182176db50569b9aaebbbe047 Mon Sep 17 00:00:00 2001 From: zulumann Date: Sun, 1 Jun 2025 21:32:46 +0200 Subject: [PATCH] Dateien nach "/" hochladen --- apt-dist.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 apt-dist.yml diff --git a/apt-dist.yml b/apt-dist.yml new file mode 100644 index 0000000..8227b09 --- /dev/null +++ b/apt-dist.yml @@ -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 +...