blob: 3f86412c134514c8355bf8a7df9a46119ddaf3a7 (
plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
---
- name: Create notification proxy worker user and group
user:
name: uwsgi-notification-proxy
create_home: no
group: uwsgi
password: '!'
shell: /sbin/nologin
system: yes
- name: Create webapp dir
file:
path: /var/lib/notification-proxy
state: directory
owner: uwsgi-notification-proxy
group: uwsgi
mode: 0550
- name: Copy webapp sources
copy:
src: notification_proxy.py
dest: /var/lib/notification-proxy/
owner: uwsgi-notification-proxy
group: uwsgi
mode: 0440
- name: Template webapp config
template:
src: notification_proxy_config.py.j2
dest: /var/lib/notification-proxy/config.py
owner: uwsgi-notification-proxy
group: root
mode: 0660
- name: Copy uwsgi config
copy:
src: uwsgi-notification-proxy.ini
dest: /etc/uwsgi.d/notification-proxy.ini
owner: uwsgi-notification-proxy
group: uwsgi
mode: 0440
- name: Enable uwsgi systemd socket
systemd:
daemon-reload: yes
name: uwsgi-app@notification-proxy.socket
enabled: yes
|