Add user 'virti' to run libvirt VMs.

This commit is contained in:
Andreas B. Mundt 2022-06-02 11:01:56 +02:00
parent 47df035a3e
commit fd7f34e380
2 changed files with 13 additions and 3 deletions

View file

@ -46,3 +46,13 @@
## Choose either gnome or KDE:
- gnome
#- kde
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

View file

@ -17,7 +17,7 @@
mountpoint="/home/%(USER)"
options="allow_other,default_permissions,reconnect,password_stdin"
ssh="0" noroot="0"
><not><or><user>root</user><user>ansible</user><user>Debian-gdm</user></or></not></volume>
><not><or><user>root</user><user>ansible</user><user>Debian-gdm</user><user>virti</user></or></not></volume>
<volume
fstype="cifs"
@ -25,7 +25,7 @@
path="{{ smb_home }}"
mountpoint="/media/%(USER)/winhome"
options="dir_mode=0750,file_mode=0640"
><not><or><user>root</user><user>ansible</user><user>Debian-gdm</user></or></not></volume>
><not><or><user>root</user><user>ansible</user><user>Debian-gdm</user><user>virti</user></or></not></volume>
<volume
fstype="cifs"
@ -33,7 +33,7 @@
path="{{ smb_share }}"
mountpoint="/media/%(USER)/winshare"
options="dir_mode=0750,file_mode=0640"
><not><or><user>root</user><user>ansible</user><user>Debian-gdm</user></or></not></volume>
><not><or><user>root</user><user>ansible</user><user>Debian-gdm</user><user>virti</user></or></not></volume>
insertafter: "<!-- Volume definitions -->"
- name: make sure .ssh exists