equal
deleted
inserted
replaced
|
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" |
|
13 notify: restart uwsgi |
|
14 |
|
15 - name: configure hgweb |
|
16 become: yes |
|
17 template: src="{{item}}.j2" dest="{{mercurial_uwsgi_root}}/{{item}}" |
|
18 loop: |
|
19 - "hgweb.config" |
|
20 - "hgweb.wsgi" |
|
21 notify: restart uwsgi |
|
22 |
|
23 - name: install uwsgi site |
|
24 become: yes |
|
25 template: src="hgweb.ini.j2" dest="/etc/uwsgi/apps-available/hgweb.ini" |
|
26 notify: restart uwsgi |
|
27 |
|
28 - name: enable uwsgi site |
|
29 become: yes |
|
30 file: |
|
31 src: "/etc/uwsgi/apps-available/hgweb.ini" |
|
32 dest: "/etc/uwsgi/apps-enabled/hgweb.ini" |
|
33 state: "link" |
|
34 notify: restart uwsgi |
|
35 |
|
36 - name: ensure uwsgi service is started |
|
37 become: yes |
|
38 systemd: name="uwsgi.service" enabled="yes" |