56
|
1 |
--- |
|
2 |
|
|
3 |
- name: pip install mercurial |
|
4 |
become: yes |
|
5 |
pip: name="mercurial" executable="pip3" |
|
6 |
|
|
7 |
- name: apt install uwsgi |
|
8 |
become: yes |
|
9 |
apt: name="{{item}}" |
|
10 |
loop: |
|
11 |
- "uwsgi" |
|
12 |
- "uwsgi-plugin-python3" |
58
|
13 |
- "python3-pygments" |
56
|
14 |
notify: restart uwsgi |
|
15 |
|
|
16 |
- name: configure hgweb |
|
17 |
become: yes |
|
18 |
template: src="{{item}}.j2" dest="{{mercurial_uwsgi_root}}/{{item}}" |
|
19 |
loop: |
|
20 |
- "hgweb.config" |
|
21 |
- "hgweb.wsgi" |
|
22 |
notify: restart uwsgi |
|
23 |
|
|
24 |
- name: install uwsgi site |
|
25 |
become: yes |
|
26 |
template: src="hgweb.ini.j2" dest="/etc/uwsgi/apps-available/hgweb.ini" |
|
27 |
notify: restart uwsgi |
|
28 |
|
|
29 |
- name: enable uwsgi site |
|
30 |
become: yes |
|
31 |
file: |
|
32 |
src: "/etc/uwsgi/apps-available/hgweb.ini" |
|
33 |
dest: "/etc/uwsgi/apps-enabled/hgweb.ini" |
|
34 |
state: "link" |
|
35 |
notify: restart uwsgi |
|
36 |
|
|
37 |
- name: ensure uwsgi service is started |
|
38 |
become: yes |
|
39 |
systemd: name="uwsgi.service" enabled="yes" |