Files
schul-laptops/playbooks/install-software.yml
Herb bd4384c36f 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>
2026-07-13 13:11:24 +02:00

38 lines
807 B
YAML

# 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(', ') }}"