Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

Add samba_mdns_name option #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ No specific requirements
| `samba_log` | - | Set the log file. If left undefined, logging is done through syslog. |
| `samba_log_size` | 5000 | Set the maximum size of the log file. |
| `samba_log_level` | 0 | Set Samba log level, 0 is least verbose and 10 is a flood of debug output. |
| `samba_mdns_name` | `netbios` | The name advertised via multicast DNS. |
| `samba_map_to_guest` | `bad user` | Behaviour when unregistered users access the shares. |
| `samba_mitigate_cve_2017_7494` | true | CVE-2017-7494 mitigation breaks some clients, such as macOS High Sierra. |
| `samba_netbios_name` | `{{ ansible_hostname }}` | The NetBIOS name of this server. |
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ samba_interfaces: []
samba_security: 'user'
samba_passdb_backend: 'tdbsam'
samba_map_to_guest: 'never'
samba_mdns_name: 'netbios'
samba_load_printers: false
samba_printer_type: 'cups'
samba_cups_server: 'localhost:631'
Expand Down
2 changes: 2 additions & 0 deletions templates/smb.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
# Server information
netbios name = {% if samba_netbios_name is defined %}{{ samba_netbios_name }}{% else %}{{ ansible_hostname }}{% endif %}

mdns name = {% if samba_mdns_name is defined %}{{ samba_mdns_name }}{% else %}netbios{% endif %}

workgroup = {{ samba_workgroup }}
{% if samba_realm is defined %}
realm = {{ samba_realm }}
Expand Down