NFS, zfs, samba and docker
This commit is contained in:
21
roles/create_samba_user/tasks/main.yml
Normal file
21
roles/create_samba_user/tasks/main.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
# tasks file for create_samba_user
|
||||
- name: Create
|
||||
ansible.builtin.blockinfile:
|
||||
state: present
|
||||
owner: root
|
||||
group: root
|
||||
insertafter: EOF
|
||||
path: /etc/samba/smb.conf
|
||||
mode: '0644'
|
||||
block: |
|
||||
[{{ samba_user }}]
|
||||
comment = {{ samba_user }} samba
|
||||
path = {{ samba_mountpoint }}
|
||||
browseable = yes
|
||||
writeable = yes
|
||||
read only = no
|
||||
create mask = 0700
|
||||
directory mask = 0700
|
||||
valid users = {{ samba_user }}
|
||||
notify: smb restart
|
||||
Reference in New Issue
Block a user