From ff181dd0752bc473c65b187ac15a9ac760e97302 Mon Sep 17 00:00:00 2001 From: staticsafe Date: Sun, 26 Nov 2017 19:34:22 -0500 Subject: [PATCH] Add mastodon-webpush role --- roles/mastodon-webpush/tasks/main.yml | 13 +++++++++++++ site.yml | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 roles/mastodon-webpush/tasks/main.yml diff --git a/roles/mastodon-webpush/tasks/main.yml b/roles/mastodon-webpush/tasks/main.yml new file mode 100644 index 0000000..471e338 --- /dev/null +++ b/roles/mastodon-webpush/tasks/main.yml @@ -0,0 +1,13 @@ +--- +# This role is here to install a npm package called web-push +# We need this to allow the user of this playbook to easily Generate +# VAPID keys on the Mastodon server. Mastodn's rake command does not work +# out of the box without a filled out .env.production which we do not yet +# have. +# Package's GitHub page - https://github.com/web-push-libs/web-push/ + +- name: Install web-push node.js library + npm: + name: web-push + global: yes + state: latest diff --git a/site.yml b/site.yml index 3bcd72e..b9ffa32 100644 --- a/site.yml +++ b/site.yml @@ -9,4 +9,4 @@ - mastodon-redis - mastodon-nginx - mastodon-systemd - + - mastodon-webpush