author | Luke Hoersten <luke@hoersten.org> |
Sat, 11 Feb 2023 10:49:06 -0600 | |
changeset 209 | 81014d20e5b1 |
parent 195 | da34c8d7511d |
child 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 |
||
13 |
- name: configure hgweb |
|
14 |
become: yes |
|
15 |
template: src="{{item}}.j2" dest="{{mercurial_uwsgi_root}}/{{item}}" |
|
16 |
loop: |
|
17 |
- "hgweb.config" |
|
18 |
- "hgweb.wsgi" |
|
19 |
notify: restart uwsgi |
|
20 |
||
21 |
- name: install uwsgi site |
|
22 |
become: yes |
|
23 |
template: src="hgweb.ini.j2" dest="/etc/uwsgi/apps-available/hgweb.ini" |
|
24 |
notify: restart uwsgi |
|
25 |
||
26 |
- name: enable uwsgi site |
|
27 |
become: yes |
|
28 |
file: |
|
29 |
src: "/etc/uwsgi/apps-available/hgweb.ini" |
|
30 |
dest: "/etc/uwsgi/apps-enabled/hgweb.ini" |
|
31 |
state: "link" |
|
32 |
notify: restart uwsgi |
|
33 |
||
34 |
- name: ensure uwsgi service is started |
|
35 |
become: yes |
|
195
da34c8d7511d
Fixed uwsgi hosting for src.nth.io.
Luke Hoersten <luke@hoersten.org>
parents:
58
diff
changeset
|
36 |
systemd: name="[email protected]" enabled="yes" |
da34c8d7511d
Fixed uwsgi hosting for src.nth.io.
Luke Hoersten <luke@hoersten.org>
parents:
58
diff
changeset
|
37 |
|
da34c8d7511d
Fixed uwsgi hosting for src.nth.io.
Luke Hoersten <luke@hoersten.org>
parents:
58
diff
changeset
|
38 |
- name: ensure uwsgi service is started |
da34c8d7511d
Fixed uwsgi hosting for src.nth.io.
Luke Hoersten <luke@hoersten.org>
parents:
58
diff
changeset
|
39 |
become: yes |
da34c8d7511d
Fixed uwsgi hosting for src.nth.io.
Luke Hoersten <luke@hoersten.org>
parents:
58
diff
changeset
|
40 |
systemd: name="[email protected]" enabled="yes" |