updated samba state
This commit is contained in:
parent
3a737bf6fa
commit
05bb86ec53
@ -3,4 +3,4 @@
|
||||
samba-config:
|
||||
ini_manage.options_present:
|
||||
- name: /etc/samba/smb.conf
|
||||
- sections: {{ samba.config }}
|
||||
- sections: {{ samba.config }}
|
||||
|
@ -1,4 +1,6 @@
|
||||
---
|
||||
samba:
|
||||
enabled: true
|
||||
config: {}
|
||||
config:
|
||||
global:
|
||||
workgroup: PAULBSD
|
||||
|
@ -6,13 +6,14 @@
|
||||
samba-user-{{ user.name }}:
|
||||
{%- if user.enabled %}
|
||||
pdbedit.managed:
|
||||
{%- else %}
|
||||
pdbedit.absent:
|
||||
{%- endif %}
|
||||
- name: {{ user.name }}
|
||||
- login: {{ user.name }}
|
||||
- password: "{{ user.password }}"
|
||||
- password_hashed: false
|
||||
{%- else %}
|
||||
pdbedit.absent:
|
||||
- name: {{ user.name }}
|
||||
{%- endif %}
|
||||
- require:
|
||||
- pkg: samba-pkg
|
||||
{%- endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user