blob: 5b8fe65187079be67e3027e689a141ab571bbc22 (
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
|
---
- 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
|