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 | 6c2bf701f63c36ce12208fd87136954aa9839e58 (patch) | |
tree | e9293020ab920ba56fcf4c745d1419a774decb90 /setup_notification_proxy.yml | |
parent | bb79cce197725b1f4cf3824d3c51e6587c8754c3 (diff) | |
download | infra-6c2bf701f63c36ce12208fd87136954aa9839e58.tar.gz infra-6c2bf701f63c36ce12208fd87136954aa9839e58.tar.bz2 infra-6c2bf701f63c36ce12208fd87136954aa9839e58.zip |
notification_proxy: Add heartbeat and startup monitoring
Diffstat (limited to 'setup_notification_proxy.yml')
-rw-r--r-- | setup_notification_proxy.yml | 15 |
1 files changed, 14 insertions, 1 deletions
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 + + |