From f34f5a5eb6b5e15435d7615bb8a890148e65c41e Mon Sep 17 00:00:00 2001 From: staticsafe Date: Mon, 11 Dec 2017 12:19:56 -0500 Subject: [PATCH] We only need to copy .env.production once now setting the SECRET_KEY_BASE environtment variable to 0 allows us to generate a VAPID_KEY --- roles/mastodon-config/tasks/main.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/roles/mastodon-config/tasks/main.yml b/roles/mastodon-config/tasks/main.yml index 0d83580..efcc810 100644 --- a/roles/mastodon-config/tasks/main.yml +++ b/roles/mastodon-config/tasks/main.yml @@ -33,13 +33,6 @@ executable: /bin/bash become: true become_user: mastodon -- name: Copy Mastodon .env.production the first time - template: - src: .env.production - dest: /home/mastodon/live/.env.production - ignore_errors: True - become: true - become_user: mastodon - name: Generate VAPID keys and register it shell: cd /home/mastodon/live && bundle exec rake mastodon:webpush:generate_vapid_key register: VAPID_KEYS @@ -51,7 +44,7 @@ executable: /bin/bash become: true become_user: mastodon -- name: Copy Mastodon .env.production the second time +- name: Copy Mastodon .env.production template: src: .env.production dest: /home/mastodon/live/.env.production