Only create www_documentroot when requested

samba_create_varwww_symlinks controls linking to the www docroot but
nothing else requires it to be available.
This commit makes its creation conditional on expected use.
This commit is contained in:
Karl Goetz 2018-08-11 13:15:01 +10:00 committed by GitHub
parent daf7e7e7a3
commit 9b127b9fd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,7 @@
file: file:
name: "{{ samba_www_documentroot }}" name: "{{ samba_www_documentroot }}"
state: directory state: directory
when: samba_create_varwww_symlinks
tags: samba tags: samba
- name: Create link to shares in webserver document root - name: Create link to shares in webserver document root