Skip to content

Commit

Permalink
Force interpretation of samba_enable_netbios as boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
tdltdc committed Nov 19, 2023
1 parent ad02062 commit bfb0d5b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion roles/server/handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
ansible.builtin.service:
name: "{{ nmb_service }}"
state: restarted
when: samba_enable_netbios
when: samba_enable_netbios | bool
2 changes: 1 addition & 1 deletion roles/server/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
state: started
enabled: true
tags: samba
when: samba_enable_netbios
when: samba_enable_netbios | bool

- name: Create Samba users if they don't exist yet
ansible.builtin.shell: >
Expand Down
2 changes: 1 addition & 1 deletion roles/server/templates/smb.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

{% endif %}
# Name resolution
{% if not samba_enable_netbios %}
{% if not samba_enable_netbios | bool %}
disable netbios = yes
{% endif %}
wins support = {{ samba_wins_support | ternary('yes', 'no') }}
Expand Down

0 comments on commit bfb0d5b

Please sign in to comment.