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