blob: 5f9288e191d997002f3c9183196b5f589906c060 (
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
|
- name: Create /srv/http/blog.ilvokhin.com directory
ansible.builtin.file:
path: /srv/http/blog.ilvokhin.com
state: directory
owner: http
group: http
mode: u+rw,g+rw,o+r
- name: Request SSL certificate for blog.ilvokhin.com
ansible.builtin.include_role:
name: certificate
vars:
domains:
- blog.ilvokhin.com
- www.blog.ilvokhin.com
- ansible.builtin.include_role:
name: nginx
- name: Configure nginx for blog.ilvokhin.com
ansible.builtin.copy:
src: files/blog.ilvokhin.com
dest: /etc/nginx/sites-available
owner: root
group: root
mode: u+rw,g+r,o+r
notify:
- Reload nginx
- name: Enable blog.ilvokhin.com site
ansible.builtin.file:
src: /etc/nginx/sites-available/blog.ilvokhin.com
dest: /etc/nginx/sites-enabled/blog.ilvokhin.com
owner: root
group: root
mode: u+rw,g+r,o+r
state: link
notify:
- Reload nginx
|