Ultime modifiche.
This commit is contained in:
parent
6951028ae5
commit
73a828502c
12 changed files with 184 additions and 3 deletions
7
roles/sssd/handlers/main.yml
Normal file
7
roles/sssd/handlers/main.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
- name: Restart sssd
|
||||
ansible.builtin.service:
|
||||
name: sssd
|
||||
state: restarted
|
||||
become: true
|
||||
become_user: root
|
67
roles/sssd/tasks/main.yml
Normal file
67
roles/sssd/tasks/main.yml
Normal file
|
@ -0,0 +1,67 @@
|
|||
---
|
||||
# Impostazioni tratte da https://www.pierreblazquez.com/2024/02/04/how-to-join-debian-12-to-an-active-directory-domain/
|
||||
#
|
||||
# Impostazione del servizio sssd
|
||||
|
||||
- name: Aggiunta suffisso di default
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/sssd/sssd.conf
|
||||
state: present
|
||||
line: "default_domain_suffix = {{ domain }}"
|
||||
insertafter: '^domains ='
|
||||
notify: Restart sssd
|
||||
|
||||
- name: Disattivazione pac responder
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/sssd/sssd.conf
|
||||
state: present
|
||||
line: implicit_pac_responder = false
|
||||
insertafter: '^config_file_version = 2'
|
||||
notify: Restart sssd
|
||||
|
||||
- name: Rimozione services
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/sssd/sssd.conf
|
||||
state: absent
|
||||
line: '^services ='
|
||||
notify: Restart sssd
|
||||
|
||||
- name: Aggiunta specifica cachedir per krb5
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/sssd/sssd.conf
|
||||
state: present
|
||||
line: krb5_ccachedir = /tmp
|
||||
insertafter: '^krb5_store_password_if_offline = True'
|
||||
notify: Restart sssd
|
||||
|
||||
- name: Aggiunta ccname template per krb5
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/sssd/sssd.conf
|
||||
state: present
|
||||
line: krb5_ccname_template = FILE:%d/.krb5cc_%U
|
||||
insertafter: 'krb5_ccachedir = /tmp'
|
||||
notify: Restart sssd
|
||||
|
||||
- name: Aggiunta full name format
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/sssd/sssd.conf
|
||||
state: present
|
||||
line: full_name_format = %1$s
|
||||
insertafter: '^ad_domain ='
|
||||
notify: Restart sssd
|
||||
|
||||
- name: Aggiunta override homedir
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/sssd/sssd.conf
|
||||
state: present
|
||||
line: override_homedir = /home/%u@%d
|
||||
insertafter: '^fallback_homedir ='
|
||||
notify: Restart sssd
|
||||
|
||||
- name: Aggiunta dydns_update, disabilitato
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/sssd/sssd.conf
|
||||
state: present
|
||||
line: dydns_update = False
|
||||
insertafter: '^fallback_homedir ='
|
||||
notify: Restart sssd
|
Loading…
Add table
Add a link
Reference in a new issue