
SMB automount seems to have major problems with multiuser mounts. For the first logged in user, everything seems to be fine. For every following logged in user, strange things will happen (e.g. firefox has problems showing the webdev console). This reverts following commits: -9df6c93636
(Switch to systemd automount for /srv/samba/schools/default-school) -f08c06d7a6
(krb5.conf from package krb5-user ist require)
24 lines
656 B
YAML
24 lines
656 B
YAML
---
|
|
- name: Install needed packages
|
|
ansible.builtin.apt:
|
|
name:
|
|
- sssd-ad
|
|
- sssd-tools
|
|
- adcli
|
|
|
|
- name: Provide user identities from AD
|
|
ansible.builtin.template:
|
|
src: sssd.conf.j2
|
|
dest: /etc/sssd/sssd.conf
|
|
mode: '0600'
|
|
notify: Restart sssd
|
|
|
|
## Either one of the variables is defined:
|
|
- name: Join the domain
|
|
ansible.builtin.shell:
|
|
cmd: >
|
|
echo "{{ ansible_cmdline.adpw | default('') + adpw.user_input | default('') }}" |
|
|
adcli join --stdin-password -U global-admin {{ domain | upper }}
|
|
when: >
|
|
ansible_cmdline.adpw | default('') | length > 0 or
|
|
adpw.user_input | default('') | length > 0
|