Commit Graph

105 Commits

Author SHA1 Message Date
staticsafe 6f503dedfe Run assets precompile before database setup
This is so that if the precompile is killed due to OOM, you can just restart the playbook without needing to change the database
name in .env.production as it isn't created yet.
2017-11-27 11:55:32 -05:00
staticsafe 5f12cf17d1 Try restarting the mastodon services in roles/mastodon-config/tasks/main.yml 2017-11-27 11:48:28 -05:00
staticsafe 72aad4357d Add requirements to README.md
Also some formatting changes.
2017-11-27 08:39:01 -05:00
staticsafe 9cf0e45052 Remove mention of group_vars file in README.md
Also mention that we now use ansible_nodename as a variable for playbook wide use
2017-11-26 22:55:22 -05:00
staticsafe ba11593f07 We now use ansible_nodename so we don't need group_vars/all.sample 2017-11-26 22:47:25 -05:00
staticsafe 10e493ca8c We no longer need the mastodon-webpush role, removed. 2017-11-26 22:36:49 -05:00
staticsafe eb7f8c9faf Add comment in README.md about what files need editing 2017-11-26 22:32:58 -05:00
staticsafe 533db0d400 Ignore errors first time we copy .env.production 2017-11-26 22:19:35 -05:00
staticsafe 6b24b411b1 let's try registered variables with VAPID keys 2017-11-26 22:15:43 -05:00
staticsafe f7bd49571e Use stdout value in roles/mastodon-config/templates/.env.production.sample 2017-11-26 22:07:21 -05:00
staticsafe d5d00bb815 it should be OTP_SECRET in roles/mastodon-config/templates/.env.production.sample 2017-11-26 22:01:35 -05:00
staticsafe c332e83312 Try registered variables to template app secrets 2017-11-26 22:00:05 -05:00
staticsafe f5268d8ffd Add mention of web-push generate-vapid-keys 2017-11-26 21:41:09 -05:00
staticsafe 923565f273 Add some instructions in README.md and uncomment mastodon-config role 2017-11-26 21:33:31 -05:00
staticsafe 75711b6fc8 Remove environment setting from shell command 2017-11-26 21:23:58 -05:00
staticsafe c387f83ae7 add SAFETY_ASSURED=1 to roles/mastodon-config/tasks/main.yml 2017-11-26 21:11:21 -05:00
staticsafe d659d42bda set RAILS_ENV=production using shell instead 2017-11-26 21:06:30 -05:00
staticsafe 5bff8365ad Add mastodon-config role. 2017-11-26 20:58:45 -05:00
staticsafe 39eb3be7d3 Rename group_vars/all to group_vars/all.sample 2017-11-26 20:07:10 -05:00
staticsafe bb2b383ce4 Wrong variable format in group_vars/all 2017-11-26 20:01:36 -05:00
staticsafe 9ef4926ccd Move group_vars/all to root of playbook 2017-11-26 19:59:24 -05:00
staticsafe 4c106708b3 Add roles/group_vars/all so we don't have to use the CLI. 2017-11-26 19:56:47 -05:00
staticsafe ff181dd075 Add mastodon-webpush role 2017-11-26 19:34:31 -05:00
staticsafe 68d0032b44 Add mastodon-systemd role. 2017-11-26 19:03:28 -05:00
staticsafe e3090a4395 Add letsencrypt-renew.sh and copy of renewal script 2017-11-26 18:24:59 -05:00
staticsafe baf17287a7 Use template instead of copy in roles/mastodon-nginx/tasks/main.yml 2017-11-26 18:11:23 -05:00
staticsafe 84fd8d2662 Add email to letsencrypt command 2017-11-26 18:08:27 -05:00
staticsafe 057f4adf13 Enable mastodon-nginx role 2017-11-26 18:05:31 -05:00
staticsafe cded7b6bc5 Add mastodon-nginx role. 2017-11-26 18:03:37 -05:00
staticsafe e8e2dd6b00 redis tools package should be redis-tools 2017-11-26 17:39:11 -05:00
staticsafe b9c8c0a9b0 Add mastodon-redis role 2017-11-26 17:37:24 -05:00
staticsafe d45d95fced Remove prompt 2017-11-26 17:21:25 -05:00
staticsafe d62df95666 Trying out a prompt for Mastodon username 2017-11-26 17:18:43 -05:00
staticsafe 2288bae23e roles/mastodon-postgresql/tasks/main.yml needed an extra - at top 2017-11-26 16:52:25 -05:00
staticsafe 5265db132c Add mastodon-postgresql role. 2017-11-26 16:50:21 -05:00
staticsafe 852b28f166 Add a comment to roles/ruby/tasks/main.yml 2017-11-26 16:40:26 -05:00
staticsafe 4d8e42dc8a Add mastodon-app role. 2017-11-26 16:32:58 -05:00
staticsafe 14a98c87b2 Use || instead of && in roles/ruby/tasks/main.yml 2017-11-24 15:39:07 -05:00
staticsafe 56c44c33f5 Create backup when copying bashrc in ruby/tasks/main.yml 2017-11-24 15:37:05 -05:00
staticsafe b23eebba41 Use a copied .bashrc file instead of shell commands 2017-11-24 15:35:56 -05:00
staticsafe 9c515da6b0 Define full path to rbenv for install
PATH doesn't seem to be set correctly previously or isn't in effect
2017-11-24 15:12:05 -05:00
staticsafe 8a3fd461c8 Add ruby role 2017-11-24 15:08:52 -05:00
staticsafe 165d4516ad Add hosts field in site.yml 2017-11-24 12:56:56 -05:00
staticsafe 5832eaf802 jfc quote was in the wrong place 2017-11-24 12:56:05 -05:00
staticsafe 234223d199 Quotes yet again 2017-11-24 12:55:15 -05:00
staticsafe af04c0d333 Remove an extraneous quote
it's all about the quotes today
2017-11-24 12:54:31 -05:00
staticsafe 2d20f964b8 And less quotes
jeez Ansible make up your mind
2017-11-24 12:53:42 -05:00
staticsafe 03420f6182 More quotes needed in roles/common/tasks/main.yml 2017-11-24 12:53:03 -05:00
staticsafe b37603c18e Should be apt_repository instead of apt-repository 2017-11-24 12:51:54 -05:00
staticsafe aaafece287 turns out apt_repository needs quotes 2017-11-24 12:50:47 -05:00