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: - name: nginx enable: True