blob: 6a9b7c7d495ac3676629acff98dcce7e26a05fc7 (
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
28
29
30
31
32
33
34
35
36
37
38
39
|
---
- block:
- name: Ensure personal web root exists
ansible.builtin.file:
path: /srv/http/michalec.dev
state: directory
owner: cmmm
group: www-data
mode: '0775'
- name: Ensure nginx site modular directory exists
ansible.builtin.file:
path: /etc/nginx/http.d/michalec.dev.d
state: directory
owner: root
group: root
mode: '0755'
- name: Deploy personal nginx site configuration
ansible.builtin.template:
src: nginx.conf.j2
dest: /etc/nginx/http.d/personal.conf
owner: root
group: root
mode: '0444'
validate: nginx-validate %s /etc/nginx/http.d/personal.conf
notify: Reload nginx
- name: Deploy personal nginx htpasswd
ansible.builtin.template:
src: htpasswd.j2
dest: /etc/nginx/htpasswd
owner: root
group: nginx
mode: '0440'
notify: Reload nginx
tags:
- personal
|