Merge branch 'fvs' of gitlab.steinbeisschule-reutlingen.de:L_MDT/debian-lan4fvs into fvs

This commit is contained in:
Raphael Dannecker 2023-08-15 12:12:59 +02:00
commit 79c8eec999
2 changed files with 49 additions and 44 deletions

View file

@ -1,13 +1,4 @@
--- ---
- name: Provide sqlite backend to skip mysql installation later
apt:
name:
- akonadi-backend-sqlite
state: latest
environment:
http_proxy: http://firewall.pn.steinbeis.schule:3128
https_proxy: http://firewall.pn.steinbeis.schule:3128
- name: Install desktop EDU packages and some more - name: Install desktop EDU packages and some more
apt: apt:
name: name:
@ -17,11 +8,12 @@
- xdg-desktop-portal-kde - xdg-desktop-portal-kde
- xdg-desktop-portal-wlr # share screen in browser - xdg-desktop-portal-wlr # share screen in browser
- kde-full - kde-full
- atftp - akonadi-backend-sqlite
- thunderbird-l10n-de - thunderbird-l10n-de
- webext-privacy-badger - webext-privacy-badger
- webext-ublock-origin-firefox - webext-ublock-origin-firefox
- webext-ublock-origin-chromium - webext-ublock-origin-chromium
- atftp
- emacs - emacs
- elpa-magit - elpa-magit
- elpa-color-theme-modern - elpa-color-theme-modern
@ -40,31 +32,27 @@
- ghex - ghex
- thonny - thonny
- spyder - spyder
# - mu-editor - mu-editor
- dia - dia
- vym - vym
- tree - tree
- ttf-mscorefonts-installer
- sqlite3 - sqlite3
- sqlitebrowser - sqlitebrowser
- neovim - neovim
- qtcreator - qtcreator
- freecad - freecad
- librecad - librecad
# - arduino - arduino
- kicad - kicad
- keepassxc - keepassxc
- tmux - tmux
- curl - curl
# - default-jre
- pulseview - pulseview
- sigrok - sigrok
- sigrok-cli - sigrok-cli
- codeblocks - codeblocks
autoremove: true
state: latest state: latest
environment:
http_proxy: http://firewall.pn.steinbeis.schule:3128
https_proxy: http://firewall.pn.steinbeis.schule:3128
- name: Add {{ ansible_distribution_release }}-backports - name: Add {{ ansible_distribution_release }}-backports
apt_repository: apt_repository:
@ -84,6 +72,23 @@
when: ansible_distribution_release == 'bullseye' when: ansible_distribution_release == 'bullseye'
- name: Preseed ttf-mscorefonts-installer
ansible.builtin.debconf:
name: ttf-mscorefonts-installer
question: msttcorefonts/dlurl
value: http://livebox.pn.steinbeis.schule/mscorefonts/
vtype: string
- name: Install fonts from local mirror
apt:
name:
- ttf-mscorefonts-installer
state: latest
autoremove: true
environment:
http_proxy: ''
- name: Enable splash screen - name: Enable splash screen
replace: replace:
dest: "/etc/default/grub" dest: "/etc/default/grub"

View file

@ -176,30 +176,30 @@
changed_when: result.stdout | length > 0 changed_when: result.stdout | length > 0
#### VMs #### VMs
- name: Deploy initial image list #- name: Deploy initial image list
copy: # copy:
src: images.list # src: images.list
dest: /var/lib/libvirt/images/images.list # dest: /var/lib/libvirt/images/images.list
force: false # force: false
#
- name: rsync VM image definitions #- name: rsync VM image definitions
command: > # command: >
rsync -a --itemize-changes # rsync -a --itemize-changes
rsync://server:/vmimages-download/xml /var/lib/libvirt/images/ # rsync://server:/vmimages-download/xml /var/lib/libvirt/images/
become: true # become: true
become_user: lmnsynci # become_user: lmnsynci
register: result # register: result
changed_when: result.stdout | length > 0 # changed_when: result.stdout | length > 0
when: not run_in_installer | default(false) | bool # when: not run_in_installer | default(false) | bool
#
- name: rsync VM images #- name: rsync VM images
command: > # command: >
rsync -a -i --files-from=/var/lib/libvirt/images/images.list # rsync -a -i --files-from=/lmn/lib/libvirt/images/images.list
rsync://server:/vmimages-download/ /var/lib/libvirt/images/ # rsync://server:/vmimages-download/ /var/lib/libvirt/images/
become: true # become: true
become_user: lmnsynci # become_user: lmnsynci
register: result # register: result
changed_when: result.stdout | length > 0 # changed_when: result.stdout | length > 0
when: > # when: >
false and not run_in_installer | default(false) | bool and (ansible_mounts | # false and not run_in_installer | default(false) | bool and (ansible_mounts |
selectattr("mount", "equalto", "/") | list)[0].size_available > 80000000000 # selectattr("mount", "equalto", "/") | list)[0].size_available > 80000000000