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