-
Notifications
You must be signed in to change notification settings - Fork 21
/
main.yml
117 lines (102 loc) · 2.91 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
---
# defaults file for ansible-samba
pri_domain_name: example.org
samba_ad_info:
[]
# ad_dc_hostname: "{{ ansible_hostname }}"
# ad_dns_domain_name: "{{ pri_domain_name }}"
# adminpass: P@55w0rd
# allow_dns_updates: disabled
# backend_dns: internal
# dns_forwarder: 8.8.8.8
# kerberos_realm: '{{ pri_domain_name }}'
# netbios_domain_name: "{{ samba_netbios_domain_name[0]|upper }}"
# Allow users who've been granted usershare privileges
# to create public shares, not just authenticated ones
samba_allow_guests: "yes"
# Defines if you are building an Active Directory domain controller
samba_create_domain_controller: false
# Defines if groups defined in samba_domain_groups list should be created
samba_create_domain_groups: false
# Defines if users defined in samba_domain_users list should be created
samba_create_domain_users: false
# Define Ansible group which contains your Samba domain controllers
samba_domain_controllers_group: samba_domain_controllers
samba_domain_groups:
[]
# - name: ad-test-group1
# members:
# - test01
# - test02
samba_domain_users:
[]
# - name: test01
# password: P@55w0rd
# - name: test02
# password: P@55w0rd
# Define samba groups to create
samba_groups:
[]
# - nogroup
# - securedgroup
# - testgroup
samba_netbios_domain_name: "{{ pri_domain_name.split('.') }}"
# Define which Ansible host should be considered the primary domain controller
samba_primary_domain_controller: "{{ groups[samba_domain_controllers_group][0] }}"
# Defines samba security
samba_security: user
# Defines server role
# (standalone server or active directory domain controller)
samba_server_role: standalone server
# Defines root folder for samba shares to be created
samba_share_path: /mnt/samba/shares
samba_shares:
[]
# - name: allaccess
# browsable: "yes"
# folder_perms: "0755"
# group: nogroup
# guest_ok: "yes"
# owner: nobody
# read_only: "no"
# writable: "yes"
# - name: public
# browsable: "yes"
# folder_perms: "0777"
# group: nogroup
# guest_ok: "yes"
# owner: nobody
# read_only: "no"
# writable: "yes"
# - name: secured
# browsable: "yes"
# folder_perms: "0770"
# group: securedgroup
# guest_ok: "no"
# valid_users: '@securedgroup'
# writable: "yes"
# - name: test
# browsable: "yes"
# folder_perms: "0770"
# group: testgroup
# guest_ok: "no"
# valid_users: '@testgroup'
# writable: "yes"
# Define users to create
samba_users:
[]
# # Define user name to create
# - name: vagrant
# # Define groups to add user to
# # ensure samba_groups names exist.
# groups:
# - nogroup
# - securedgroup
# - testgroup
# # Define samba user password
# smbpasswd: P@55w0rd
samba_workgroup: "{{ samba_netbios_domain_name[0]|upper }}"
# Printers options
samba_use_printers: False
samba_printer_type: cups
samba_cups_server: "localhost:631"