From 9b127b9fd4fc31747edaff4640fff272b28ea336 Mon Sep 17 00:00:00 2001 From: Karl Goetz Date: Sat, 11 Aug 2018 13:15:01 +1000 Subject: [PATCH] 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. --- tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/main.yml b/tasks/main.yml index 0d328fe..7c777de 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -57,6 +57,7 @@ file: name: "{{ samba_www_documentroot }}" state: directory + when: samba_create_varwww_symlinks tags: samba - name: Create link to shares in webserver document root