From 6c2bf701f63c36ce12208fd87136954aa9839e58 Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 22 Jan 2020 15:54:59 +0100 Subject: notification_proxy: Add heartbeat and startup monitoring --- setup_notification_proxy.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'setup_notification_proxy.yml') diff --git a/setup_notification_proxy.yml b/setup_notification_proxy.yml index 3f86412..b47af05 100644 --- a/setup_notification_proxy.yml +++ b/setup_notification_proxy.yml @@ -1,4 +1,8 @@ --- +- name: Set local facts + set_fact: + notification_proxy_sqlite_dbfile: /var/lib/notification-proxy/db.sqlite3 + - name: Create notification proxy worker user and group user: name: uwsgi-notification-proxy @@ -14,7 +18,7 @@ state: directory owner: uwsgi-notification-proxy group: uwsgi - mode: 0550 + mode: 0750 - name: Copy webapp sources copy: @@ -46,3 +50,12 @@ name: uwsgi-app@notification-proxy.socket enabled: yes +- name: Create sqlite db file + file: + path: "{{notification_proxy_sqlite_dbfile}}" + owner: uwsgi-notification-proxy + group: uwsgi + mode: 0660 + state: touch + + -- cgit