16 lines
274 B
Plaintext
16 lines
274 B
Plaintext
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
|