blob: 85fe7ec3f5fbe4dc299c6e9866110c7f12411cc9 (
plain) (
blame)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
---
- name: Install NGINX & modules
package:
name:
- nginx
- libnginx-mod-http-lua
- libnginx-mod-http-geoip
state: present
tags:
- role::nginx
- name: Copy NGINX default config
copy:
src: default_server.conf
dest: /etc/nginx/conf.d/default_server.conf
group: root
owner: root
mode: "0644"
tags:
- role::nginx
notify:
- Reload the nginx service
- name: Remove default nginx site
file:
path: /etc/nginx/sites-enabled/default
state: absent
- name: Copy file server config
copy:
src: files.pydis.wtf
dest: /etc/nginx/sites-available/files.pydis.wtf
group: root
owner: root
mode: "0644"
tags:
- role::nginx
notify:
- Reload the nginx service
- name: Enable file server
file:
src: /etc/nginx/sites-available/files.pydis.wtf
dest: /etc/nginx/sites-enabled/files.pydis.wtf
state: link
|