Ultime modifiche.
This commit is contained in:
parent
6951028ae5
commit
73a828502c
12 changed files with 184 additions and 3 deletions
18
roles/samba/tasks/main.yml
Normal file
18
roles/samba/tasks/main.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
# Sistemazione file samba
|
||||
|
||||
- name: Installazione prerequisiti
|
||||
ansible.builtin.apt:
|
||||
name:
|
||||
- samba-common
|
||||
- cifs-utils
|
||||
state: present
|
||||
|
||||
- name: Configuriamo samba da template
|
||||
ansible.builtin.template:
|
||||
src: smb.conf
|
||||
dest: /etc/samba/smb.conf
|
||||
backup: true
|
||||
owner: root
|
||||
group: root
|
||||
mode: '0644'
|
5
roles/samba/templates/smb.conf
Normal file
5
roles/samba/templates/smb.conf
Normal file
|
@ -0,0 +1,5 @@
|
|||
[global]
|
||||
workgroup = {{ netbios }}
|
||||
realm = {{ realm }}
|
||||
encrypt passwords = yes
|
||||
client protection = encrypt
|
Loading…
Add table
Add a link
Reference in a new issue