Skip to content

Commit

Permalink
Fix whitespace in template
Browse files Browse the repository at this point in the history
  • Loading branch information
vladgh committed Nov 3, 2023
1 parent 52eb827 commit 952b45c
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 952b45c

Please sign in to comment.