{{ ansible_managed | comment }} # https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Standalone_Server#Creating_a_Basic_guest_only_smb.conf_File [global] logging = syslog map to guest = Bad user {% if samba_guest_account %} {# Otherwise, it's `nobody`, and you will, most likely, get read access only. #} guest account = {{ samba_guest_account }} {% endif %} server role = standalone server auto services = {{ samba_share_name }} [{{ samba_share_name }}] path = {{ samba_share_dir }} read only = no guest ok = yes guest only = yes