exam-laptop/playbook.yml

101 lines
2.1 KiB
YAML
Raw Normal View History

2024-05-07 22:34:14 +02:00
---
2024-05-07 22:42:16 +02:00
- name: ensure safe environment for exams
hosts: localhost
2024-05-08 09:47:30 +02:00
vars:
2024-05-08 16:29:07 +02:00
- pruefungsuser: "pruefling"
- pruefungsgruppe: "prueflinge"
- pruefungspasswort: "pruefung"
2024-05-08 17:00:52 +02:00
environment:
PATH: "/sbin:{{ ansible_env.PATH }}"
2024-05-07 22:34:14 +02:00
# to verify ufw configuration run:
# sudo ufw status verbose
2024-05-08 15:48:45 +02:00
roles:
2024-05-08 16:29:07 +02:00
- role: pruefungsuser
2024-05-08 16:32:54 +02:00
- role: libreoffice
2024-05-08 17:00:52 +02:00
- role: ufw
2024-05-08 16:23:24 +02:00
2024-05-07 22:42:16 +02:00
tasks:
2024-05-07 22:34:14 +02:00
2024-05-08 09:25:15 +02:00
- name: disable mounting of usb flash drives
file:
path: /media
owner: root
mode: '700'
2024-05-08 16:29:07 +02:00
2024-05-08 09:25:15 +02:00
2024-05-08 09:36:49 +02:00
- name: Set timezone to Europe/Vienna
timezone:
name: Europe/Vienna
2024-05-07 22:34:14 +02:00
2024-05-07 22:42:16 +02:00
- name: purge some prior installed packages
apt:
name:
- task-kde-desktop
- task-german-kde-desktop
- task-german-desktop
- xdg-desktop-portal-kde
2024-05-08 09:25:15 +02:00
- xdg-desktop-portal-wlr
2024-05-07 22:42:16 +02:00
- akonadi-backend-sqlite
- thunderbird-l10n-de
- webext-privacy-badger
- webext-ublock-origin-firefox
- webext-ublock-origin-chromium
- vlc
- gimp
- inkscape
- flameshot
- bluefish
- nmap
- net-tools
- ghex
- thonny
- spyder
- mu-editor
- dia
- vym
- tree
- sqlite3
- kicad
- kicad-doc-de
2024-05-07 22:52:32 +02:00
- akonadi-backend-mysql
- akonadi-contacts-data
- akonadi-mime-data
- akonadi-server
- akregator
- aspell
- aspell-de
2024-05-07 23:09:07 +02:00
- dolphin
- firebird3.0-common
- gimp-data
- gwenview
- hyphen-en-us
- ingerman
- ispell
- kate
- kcalc
- kmail
- knotes
- korganizer
- wamerican
2024-05-07 23:11:41 +02:00
- dragonplayer
- juk
2024-05-07 22:42:16 +02:00
autoremove: yes
state: absent
2024-05-08 10:26:25 +02:00
- name: intall some prior installed packages
apt:
name:
2024-05-08 12:21:19 +02:00
- curl
2024-05-08 10:26:25 +02:00
state: latest
2024-05-07 22:49:26 +02:00
- name: Enable ufw
2024-05-07 22:54:54 +02:00
ufw: state=enabled
2024-05-07 22:49:26 +02:00
- name: start ufw service
service:
name: ufw
state: restarted