Clean up new playbooks; mind mapping software.

This commit is contained in:
Andreas B. Mundt 2023-09-27 20:33:14 +02:00
parent bfae6ff010
commit 4ba4836b7d
2 changed files with 4 additions and 59 deletions

View file

@ -1,4 +1,4 @@
## This playbook deploys a KDE desktop machine for LinuxMuster.
## This playbook deploys a KDE teacher's laptop machine for LinuxMuster.
---
- name: apply configuration to the machines
hosts: all
@ -45,71 +45,14 @@
- up2date_debian
- lmn_sssd
- lmn_kde
- lmn_mount
- lmn_fvs ## school specific customization
- lmn_vm
- lmn_printer
- kerberize
- lmn_security
# - lmn_security
tasks:
- name: Add local user 'virti' in the 'libvirt' group
ansible.builtin.user:
name: virti
password: $y$j9T$DuSvAO63v5LvoJmJ1rB0B0$D4tovIz79AdLHs5I6tYa7rxr3SWknQeUFvGaaKvUpo3
comment: Libvirt VM User,,,
shell: /bin/bash
groups: libvirt
append: yes
when: false
- name: enable pam_mkhomedir.so
lineinfile:
dest: /etc/pam.d/common-session
line: "session optional pam_mkhomedir.so umask=0022"
insertbefore: "# end of pam-auth-update config"
- name: Fix 8086:4909 external graphics card
replace:
dest: "/etc/default/grub"
regexp: 'GRUB_CMDLINE_LINUX=""$'
replace: 'GRUB_CMDLINE_LINUX="i915.force_probe=4909"'
notify: Run update-grub
when: ansible_board_vendor == "LENOVO" and ansible_board_name == "32CB"
- name: Fix sound on 312A
replace:
dest: "/etc/default/grub"
regexp: 'GRUB_CMDLINE_LINUX="snd-intel-dspcfg.dsp_driver=1"$'
replace: 'GRUB_CMDLINE_LINUX=""'
notify: Run update-grub
when: ansible_board_vendor == "LENOVO" and ansible_board_name == "312A"
- name: Fix sound on 312A and 312D
apt:
name: firmware-sof-signed
state: latest
when: >
ansible_board_vendor == "LENOVO" and
(ansible_board_name == "312D" or ansible_board_name == "312A")
## bullseye fixes:
- name: add bookworm firmware repository if needed
apt_repository:
repo: deb http://deb.debian.org/debian/ bookworm non-free-firmware
state: present
update_cache: true
when: >
ansible_board_vendor == "LENOVO" and
ansible_board_name == "32CB" and
ansible_distribution_release == "bullseye"
- name: upgrade non-free-firmware packages
apt:
upgrade: true
autoremove: true
autoclean: true
when: >
ansible_board_vendor == "LENOVO" and
ansible_board_name == "32CB" and
ansible_distribution_release == "bullseye"

View file

@ -27,6 +27,7 @@
- elpa-color-theme-modern
- elpa-magit
- emacs
- freeplane
- git
- gitg
- gitk
@ -35,6 +36,7 @@
- kdevelop-php
- kdevelop-python
- libnotify-bin ## needed for pwroff script
- minder
- neovim
- net-tools
- netcat-openbsd