From 923565f2732e0db83dc4fc889dc86e5b79cdce35 Mon Sep 17 00:00:00 2001 From: staticsafe Date: Sun, 26 Nov 2017 21:33:19 -0500 Subject: [PATCH] Add some instructions in README.md and uncomment mastodon-config role --- README.md | 14 ++++++++++++++ site.yml | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8401638..511064a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,16 @@ # mastible An Ansible playbook to install Mastodon + +## Instructions for running this playbook + +- Copy group_vars/all.sample to group_vars/all, edit with your own instance's domain/sub-domain +- Copy roles/mastodon-config/templates/.env.production.sample to roles/mastodon-config/templates/.env.production, edit with all relevant details +- The application secrets in that file can be generated using the `pwgen` utility found in the package repositories, exact command would be `pwgen 150 3` +- The VAPID keys can be generated using the web-push package from NPM, install this on your Ansible bastion host or the Mastodon server and put the values in .env.production +- Make a hosts file that looks like this: + +``` +[mastodon] +dev.example.social +``` +- Run the playbook with `ansible-playbook -i hosts site.yml` diff --git a/site.yml b/site.yml index 1cc4a2b..83f8b19 100644 --- a/site.yml +++ b/site.yml @@ -10,4 +10,4 @@ - mastodon-nginx - mastodon-systemd - mastodon-webpush -# - mastodon-config + - mastodon-config