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: