diff options
author | jaseg <code@jaseg.net> | 2020-01-22 15:54:59 +0100 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2020-01-22 15:57:23 +0100 |
commit | a4eba0f69960fc40325c087dc03b9513f657b1e6 (patch) | |
tree | b73c7a30f4cdebc54683875f47cd87888fc9af66 /gerboweb/deploy/setup_notification_proxy.yml | |
parent | e2865d243b360a462b3dae5157fd78fd26be1371 (diff) | |
download | gerbolyze-a4eba0f69960fc40325c087dc03b9513f657b1e6.tar.gz gerbolyze-a4eba0f69960fc40325c087dc03b9513f657b1e6.tar.bz2 gerbolyze-a4eba0f69960fc40325c087dc03b9513f657b1e6.zip |
notification_proxy: Add heartbeat and startup monitoring
Diffstat (limited to 'gerboweb/deploy/setup_notification_proxy.yml')
-rw-r--r-- | gerboweb/deploy/setup_notification_proxy.yml | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/gerboweb/deploy/setup_notification_proxy.yml b/gerboweb/deploy/setup_notification_proxy.yml index 3f86412..b47af05 100644 --- a/gerboweb/deploy/setup_notification_proxy.yml +++ b/gerboweb/deploy/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 + + |