Clean up FvS playbooks and add VM server playbook.
This commit is contained in:
parent
42d3fa4c25
commit
080356bfa4
4 changed files with 30 additions and 27 deletions
28
fvs-vm-server.yml
Normal file
28
fvs-vm-server.yml
Normal 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"'
|
Loading…
Add table
Add a link
Reference in a new issue