Clean up FvS playbooks and add VM server playbook.

This commit is contained in:
Andreas B. Mundt 2021-10-14 19:13:03 +02:00
parent 42d3fa4c25
commit 080356bfa4
4 changed files with 30 additions and 27 deletions

View file

@ -1,6 +1,5 @@
## This playbook deploys a FvS desktop machine.
---
# This playbook deploys a kiosk-computer
- name: apply configuration to the machines
hosts: all
remote_user: ansible

View file

@ -1,3 +1,4 @@
## This playbook deploys a FvS home server machine.
---
- name: apply configuration to the home server
hosts: all

View file

@ -1,25 +0,0 @@
---
# This playbook deploys a kiosk-computer
- name: apply configuration to the machines
hosts: all
remote_user: ansible
become: yes
vars:
extra_pkgs:
- vim
- git
- mc
- tmux
- nmap
- netcat-openbsd
- net-tools
- tree
- console-setup
- virt-manager
extra_pkgs_bpo: [ linux-image-amd64 ] # [ libreoffice ]
roles:
- up2date-debian
## Choose either gnome or KDE:
- fvs-mkhome

28
fvs-vm-server.yml Normal file
View file

@ -0,0 +1,28 @@
## This playbook deploys a FvS VM server machine.
---
- name: apply configuration to the VM server
hosts: all
remote_user: ansible
become: yes
vars:
extra_pkgs:
- vim
- libvirt-daemon-system
extra_pkgs_bpo: [ ] # [ libreoffice ]
roles:
- up2date-debian
- fvs-sssd
tasks:
- name: enable pam_mkhomedir.so
lineinfile:
dest: /etc/pam.d/common-session
line: "session optional pam_mkhomedir.so umask=0027"
insertbefore: "session optional pam_mount.so"
- name: allow all users to use VMs
lineinfile:
dest: /etc/libvirt/libvirtd.conf
line: 'auth_unix_rw = "none"'
insertafter: '#auth_unix_rw = "polkit"'