diff --git a/roles/domain/tasks/main.yml b/roles/domain/tasks/main.yml index 63bee01..e764f5f 100644 --- a/roles/domain/tasks/main.yml +++ b/roles/domain/tasks/main.yml @@ -2,12 +2,17 @@ # Configurazioni per messa in dominio. # Impostazioni grafiche da gestire in dominio -- include: gui-changes.yml - tags: - - domain - - gui - - include: ntp.yml tags: - domain - ntp + +- include: nss.yml + tags: + - domain + - nss + +- include: gui-changes.yml + tags: + - domain + - gui diff --git a/roles/domain/tasks/nss.yml b/roles/domain/tasks/nss.yml new file mode 100644 index 0000000..c49bfa9 --- /dev/null +++ b/roles/domain/tasks/nss.yml @@ -0,0 +1,3 @@ +--- +- name: Configurazione nsswitch.conf + template: src=nsswitch.conf dest=/etc/nsswitch.conf backup=yes owner=root group=root mode=0644 diff --git a/roles/domain/templates/nsswitch.conf b/roles/domain/templates/nsswitch.conf new file mode 100644 index 0000000..c35fb0b --- /dev/null +++ b/roles/domain/templates/nsswitch.conf @@ -0,0 +1,11 @@ +# {{ ansible_managed }} +passwd: compat winbind +group: compat winbind +shadow: compat winbind +hosts: files dns wins +networks: files +protocols: db files +services: db files +ethers: db files +rpc: db files +netgroup: nis