Improvements sambox-client.
This commit is contained in:
parent
06973c015b
commit
d7d767fea9
3 changed files with 20 additions and 2 deletions
|
@ -9,6 +9,7 @@
|
||||||
name:
|
name:
|
||||||
- di-netboot-assistant
|
- di-netboot-assistant
|
||||||
- "{{ di_pkg }}"
|
- "{{ di_pkg }}"
|
||||||
|
state: latest # noqa package-latest
|
||||||
notify:
|
notify:
|
||||||
- bind mount images
|
- bind mount images
|
||||||
- rebuild di-netboot-assistant menu
|
- rebuild di-netboot-assistant menu
|
||||||
|
@ -26,3 +27,4 @@
|
||||||
path: /etc/hosts
|
path: /etc/hosts
|
||||||
regexp: '^(127\.0\.1\.1.*)$'
|
regexp: '^(127\.0\.1\.1.*)$'
|
||||||
replace: '#\1\n{{ ipaddr_lan | ipaddr("address") }} {{ ansible_hostname }}.{{ ansible_domain }} {{ ansible_hostname }}'
|
replace: '#\1\n{{ ipaddr_lan | ipaddr("address") }} {{ ansible_hostname }}.{{ ansible_domain }} {{ ansible_hostname }}'
|
||||||
|
when: ipaddr_lan is defined
|
||||||
|
|
|
@ -89,6 +89,15 @@
|
||||||
before: '\[.+\]'
|
before: '\[.+\]'
|
||||||
notify: restart smbd
|
notify: restart smbd
|
||||||
|
|
||||||
|
- name: make smb homes writable
|
||||||
|
replace:
|
||||||
|
path: /etc/samba/smb.conf
|
||||||
|
regexp: '^(\s*create mask =) 0700'
|
||||||
|
replace: '\1 0600'
|
||||||
|
after: '\[homes\]'
|
||||||
|
before: '\[.+\]'
|
||||||
|
notify: restart smbd
|
||||||
|
|
||||||
- name: slurp admin password for samba setup
|
- name: slurp admin password for samba setup
|
||||||
slurp:
|
slurp:
|
||||||
src: "{{ ldap_admin_pwd_file }}"
|
src: "{{ ldap_admin_pwd_file }}"
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
- libpam-mount
|
- libpam-mount
|
||||||
- cifs-utils
|
- cifs-utils
|
||||||
- sshfs
|
- sshfs
|
||||||
|
- hxtools
|
||||||
state: latest # noqa package-latest
|
state: latest # noqa package-latest
|
||||||
|
|
||||||
- name: add URI to ldap.conf
|
- name: add URI to ldap.conf
|
||||||
|
@ -32,7 +33,7 @@
|
||||||
mode: 0600
|
mode: 0600
|
||||||
notify: restart sssd
|
notify: restart sssd
|
||||||
|
|
||||||
- name: configure pam_mount
|
- name: configure pam_mount # interesting options: posix,mfsymlinks,nomapposix,noperm
|
||||||
blockinfile:
|
blockinfile:
|
||||||
dest: /etc/security/pam_mount.conf.xml
|
dest: /etc/security/pam_mount.conf.xml
|
||||||
block: |
|
block: |
|
||||||
|
@ -41,7 +42,7 @@
|
||||||
server="{{ home_server }}"
|
server="{{ home_server }}"
|
||||||
path="%(USER)"
|
path="%(USER)"
|
||||||
mountpoint="/home/lan/%(USER)"
|
mountpoint="/home/lan/%(USER)"
|
||||||
options="dir_mode=0750,file_mode=0640"
|
options="idsfromsid,modefromsid,mfsymlinks"
|
||||||
><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></or></not></volume -->
|
||||||
<volume
|
<volume
|
||||||
fstype="fuse"
|
fstype="fuse"
|
||||||
|
@ -52,6 +53,12 @@
|
||||||
><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></or></not></volume>
|
||||||
insertafter: "<!-- Volume definitions -->"
|
insertafter: "<!-- Volume definitions -->"
|
||||||
|
|
||||||
|
- name: make sure umount is not blocked
|
||||||
|
replace:
|
||||||
|
path: /etc/security/pam_mount.conf.xml
|
||||||
|
regexp: '<logout wait="0".*'
|
||||||
|
replace: '<logout wait="3000" hup="yes" term="yes" kill="yes"/>'
|
||||||
|
|
||||||
- name: make sure .ssh exists
|
- name: make sure .ssh exists
|
||||||
file:
|
file:
|
||||||
path: /root/.ssh
|
path: /root/.ssh
|
||||||
|
|
Loading…
Add table
Reference in a new issue