Updated + New File

This commit is contained in:
Joaquin 2024-11-27 11:46:22 +01:00
parent 006f060193
commit 957cc63abe
2 changed files with 10 additions and 0 deletions

View File

@ -2,11 +2,14 @@
- name: Server Update und Upgrade - name: Server Update und Upgrade
hosts: all hosts: all
gather_facts: no gather_facts: no
gather_subnet:
- "!all"
become: true become: true
tasks: tasks:
- name: Paketlisten aktualisieren - name: Paketlisten aktualisieren
apt: apt:
update_cache: yes update_cache: yes
cache_valid_time: 3600
- name: Alle Pakete upgraden - name: Alle Pakete upgraden
apt: apt:

View File

@ -0,0 +1,7 @@
---
- name: Paketlisten aktualisieren
hosts: all
become: true
tasks:
- name: Paketlisten mit apt-get aktualisieren
command: apt-get update