Bestand aus ~/ansible-schule uebernehmen (Push-Setup, Stand Feb 2026)
Playbooks, Inventory, update-ips.sh, first-boot-setup.sh und Doku unveraendert aus dem alten git-losen Ordner uebernommen. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
37
playbooks/install-software.yml
Normal file
37
playbooks/install-software.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
# Software auf allen Rechnern installieren
|
||||
#
|
||||
# Verwendung:
|
||||
# ansible-playbook playbooks/install-software.yml
|
||||
#
|
||||
# Oder einzelnes Paket:
|
||||
# ansible-playbook playbooks/install-software.yml -e "packages=['firefox','vlc']"
|
||||
#
|
||||
---
|
||||
- name: Software installieren
|
||||
hosts: clients
|
||||
become: yes
|
||||
|
||||
vars:
|
||||
# Standard-Pakete die installiert werden sollen
|
||||
packages:
|
||||
- htop
|
||||
- git
|
||||
- curl
|
||||
- vim
|
||||
# Weitere Pakete hier hinzufuegen
|
||||
|
||||
tasks:
|
||||
- name: APT Cache aktualisieren
|
||||
apt:
|
||||
update_cache: yes
|
||||
cache_valid_time: 3600
|
||||
|
||||
- name: Pakete installieren
|
||||
apt:
|
||||
name: "{{ packages }}"
|
||||
state: present
|
||||
register: install_result
|
||||
|
||||
- name: Installierte Pakete anzeigen
|
||||
debug:
|
||||
msg: "Installiert: {{ packages | join(', ') }}"
|
||||
Reference in New Issue
Block a user