blob: 1e21becac385b8a5580f209787c340688609b6e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
---
- name: install nginx
pacman:
name: nginx
state: present
- name: copy nginx.conf
copy:
src: nginx.conf
dest: /etc/nginx/nginx.conf
notify: reload nginx
- 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
|