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

Make it optional to create share directories #67

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 defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ samba_local_master: 'yes'
samba_domain_master: 'yes'
samba_preferred_master: 'yes'
samba_mitigate_cve_2017_7494: true
samba_create_directories: true
3 changes: 2 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
owner: root
group: root
mode: '0755'
when: samba_shares|length > 0
when: samba_shares|length > 0 and samba_create_directories|bool
tags: samba

- name: Create share directories
Expand All @@ -71,6 +71,7 @@
group: "{{ item.group|default('users') }}"
mode: "{{ item.directory_mode|default('0775') }}"
setype: "{{ item.setype|default('samba_share_t') }}"
when: samba_create_directories|bool
tags: samba

- name: Ensure webserver document root exists
Expand Down