You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
481 B
YAML
27 lines
481 B
YAML
8 years ago
|
---
|
||
|
- name: install nginx
|
||
|
pacman:
|
||
|
name: nginx
|
||
|
state: present
|
||
|
|
||
|
- name: copy nginx.conf
|
||
|
copy:
|
||
|
src: nginx.conf
|
||
|
dest: /etc/nginx/nginx.conf
|
||
|
|
||
|
- name: add sites-available folder
|
||
|
file:
|
||
|
path: /etc/nginx/sites-available
|
||
|
state: directory
|
||
|
|
||
|
- name: add sites-enabled folder
|
||
|
file:
|
||
|
path: /etc/nginx/sites-enabled
|
||
|
state: directory
|
||
|
|
||
|
- name: start and enable nginx
|
||
|
systemd:
|
||
|
name: nginx.service
|
||
|
enabled: yes
|
||
|
state: started
|