A Ansible playbook for installing Mastodon
Go to file
2017-11-26 22:15:43 -05:00
group_vars Rename group_vars/all to group_vars/all.sample 2017-11-26 20:07:10 -05:00
roles let's try registered variables with VAPID keys 2017-11-26 22:15:43 -05:00
LICENSE Initial commit 2017-11-24 11:52:16 -05:00
README.md Add mention of web-push generate-vapid-keys 2017-11-26 21:41:09 -05:00
site.yml Add some instructions in README.md and uncomment mastodon-config role 2017-11-26 21:33:31 -05:00

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, exact command would be web-push generate-vapid-keys.
  • Make a hosts file that looks like this:
[mastodon]
dev.example.social
  • Run the playbook with ansible-playbook -i hosts site.yml