Avoid mounting attempts when switching to 'root'.

This commit is contained in:
Andreas B. Mundt 2021-04-13 09:40:57 +02:00
parent 449b4ff653
commit 6be0eefcaa

View file

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