Skip to content

Commit

Permalink
Merge pull request #116 from vladgh/115-template
Browse files Browse the repository at this point in the history
  • Loading branch information
vladgh authored Nov 3, 2023
2 parents 52eb827 + 952b45c commit f9488c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
vars:
samba_netbios_name: NAS
samba_server_string: NAS
samba_realm: EXAMPLE.COM
samba_workgroup: WORKGROUP
samba_global_include: global-include.conf
samba_load_homes: true
Expand Down
6 changes: 2 additions & 4 deletions roles/server/templates/smb.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

[global]
# Server information
netbios name = {% if samba_netbios_name is defined and samba_netbios_name %}{{ samba_netbios_name }}{% else %}{{ ansible_hostname }}{% endif %}
mdns name = {% if samba_mdns_name is defined and samba_mdns_name %}{{ samba_mdns_name }}{% else %}netbios{% endif %}

netbios name = {% if samba_netbios_name is defined and samba_netbios_name %}{{ samba_netbios_name }}{% else %}{{ ansible_hostname }}{% endif +%}
mdns name = {% if samba_mdns_name is defined and samba_mdns_name %}{{ samba_mdns_name }}{% else %}netbios{% endif +%}
workgroup = {{ samba_workgroup }}
{% if samba_realm is defined and samba_realm %}
realm = {{ samba_realm }}
{% endif %}
server string = {{ samba_server_string }}

{% if samba_apple_extensions is defined and samba_apple_extensions | bool %}
fruit:aapl = yes
{% endif %}
Expand Down

0 comments on commit f9488c6

Please sign in to comment.