From 0a4776d91ce2c36b02b8dff5a7c2faa355df540b Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sun, 12 Jul 2015 22:23:52 +0200 Subject: [PATCH] Aggiunta task per nsswitch.conf --- roles/domain/tasks/main.yml | 15 ++++++++++----- roles/domain/tasks/nss.yml | 3 +++ roles/domain/templates/nsswitch.conf | 11 +++++++++++ 3 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 roles/domain/tasks/nss.yml create mode 100644 roles/domain/templates/nsswitch.conf 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