Implement lmn-sssd and lmn-mount roles.
This commit is contained in:
parent
f88626ec7e
commit
db054949a5
6 changed files with 78 additions and 16 deletions
20
roles/lmn-mount/tasks/main.yml
Normal file
20
roles/lmn-mount/tasks/main.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
---
|
||||
- name: install needed packages
|
||||
apt:
|
||||
name:
|
||||
- libpam-mount
|
||||
- cifs-utils
|
||||
state: latest
|
||||
|
||||
- name: configure pam_mount
|
||||
blockinfile:
|
||||
dest: /etc/security/pam_mount.conf.xml
|
||||
block: |
|
||||
<volume
|
||||
fstype="cifs"
|
||||
server="{{ smb_server }}"
|
||||
path="{{ smb_home }}"
|
||||
mountpoint="/home/%(DOMAIN_USER)"
|
||||
options="sec=krb5i,vers=3.0,cruid=%(USERUID),user=%(USER)"
|
||||
><not><or><user>root</user><user>ansible</user><user>Debian-gdm</user><user>sddm</user><user>virti</user></or></not></volume>
|
||||
insertafter: "<!-- Volume definitions -->"
|
Loading…
Add table
Add a link
Reference in a new issue