From a36de5b233d4dc3c39c9ee6bc181ee7c1160d861 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Sat, 16 Oct 2021 09:34:46 +0200 Subject: [PATCH] . --- salt/states/nginx/init.sls | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/salt/states/nginx/init.sls b/salt/states/nginx/init.sls index d3dda5a..ee3fe92 100644 --- a/salt/states/nginx/init.sls +++ b/salt/states/nginx/init.sls @@ -2,7 +2,12 @@ Install nginx: pkg.installed: - name: nginx - +create www folder structure: + file.recurse: + - name: /srv/www/htdocs + - source: salt://nginx/files + - include_empty: True + - replace: False Start nginx: service.running: