author | Luke Hoersten <luke@hoersten.org> |
Mon, 12 Feb 2024 17:29:16 -0600 | |
changeset 232 | a447e60bd3e9 |
parent 227 | 2e0366f2dcbe |
permissions | -rw-r--r-- |
56 | 1 |
--- |
2 |
||
3 |
- name: apt install uwsgi |
|
4 |
become: yes |
|
5 |
apt: name="{{item}}" |
|
6 |
loop: |
|
195
da34c8d7511d
Fixed uwsgi hosting for src.nth.io.
Luke Hoersten <luke@hoersten.org>
parents:
58
diff
changeset
|
7 |
- "mercurial" |
56 | 8 |
- "uwsgi" |
9 |
- "uwsgi-plugin-python3" |
|
58 | 10 |
- "python3-pygments" |
56 | 11 |
notify: restart uwsgi |
12 |
||
227
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
195
diff
changeset
|
13 |
- name: make hgweb dir |
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
195
diff
changeset
|
14 |
become: yes |
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
195
diff
changeset
|
15 |
file: |
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
195
diff
changeset
|
16 |
path: "{{mercurial_uwsgi_root}}" |
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
195
diff
changeset
|
17 |
state: "directory" |
2e0366f2dcbe
Tons of updates to fix migration to new server.
Luke Hoersten <luke@hoersten.org>
parents:
195
diff
changeset
|
18 |
|
56 | 19 |
- name: configure hgweb |
20 |
become: yes |
|
21 |
template: src="{{item}}.j2" dest="{{mercurial_uwsgi_root}}/{{item}}" |
|
22 |
loop: |
|
23 |
- "hgweb.config" |
|
24 |
- "hgweb.wsgi" |
|
25 |
notify: restart uwsgi |
|
26 |
||
27 |
- name: install uwsgi site |
|
28 |
become: yes |
|
29 |
template: src="hgweb.ini.j2" dest="/etc/uwsgi/apps-available/hgweb.ini" |
|
30 |
notify: restart uwsgi |
|
31 |
||
32 |
- name: enable uwsgi site |
|
33 |
become: yes |
|
34 |
file: |
|
35 |
src: "/etc/uwsgi/apps-available/hgweb.ini" |
|
36 |
dest: "/etc/uwsgi/apps-enabled/hgweb.ini" |
|
37 |
state: "link" |
|
38 |
notify: restart uwsgi |
|
39 |
||
40 |
- name: ensure uwsgi service is started |
|
41 |
become: yes |
|
195
da34c8d7511d
Fixed uwsgi hosting for src.nth.io.
Luke Hoersten <luke@hoersten.org>
parents:
58
diff
changeset
|
42 |
systemd: name="[email protected]" enabled="yes" |
da34c8d7511d
Fixed uwsgi hosting for src.nth.io.
Luke Hoersten <luke@hoersten.org>
parents:
58
diff
changeset
|
43 |
|
da34c8d7511d
Fixed uwsgi hosting for src.nth.io.
Luke Hoersten <luke@hoersten.org>
parents:
58
diff
changeset
|
44 |
- name: ensure uwsgi service is started |
da34c8d7511d
Fixed uwsgi hosting for src.nth.io.
Luke Hoersten <luke@hoersten.org>
parents:
58
diff
changeset
|
45 |
become: yes |
da34c8d7511d
Fixed uwsgi hosting for src.nth.io.
Luke Hoersten <luke@hoersten.org>
parents:
58
diff
changeset
|
46 |
systemd: name="[email protected]" enabled="yes" |