use upstream name for env

This commit is contained in:
Antonio J. Delgado 2023-07-08 20:43:58 +03:00
parent 5b06c55859
commit 2b41aa2860

View file

@ -91,7 +91,7 @@
- name: Ensure mastodon environment configuration is present - name: Ensure mastodon environment configuration is present
template: template:
src: templates/env.j2 src: templates/env.j2
dest: "{{ mastodon_composer_folder }}/env.production" dest: "{{ mastodon_composer_folder }}/.env.production"
mode: 0600 mode: 0600
backup: true backup: true
@ -109,7 +109,7 @@
- name: Add secret key to Mastodon config - name: Add secret key to Mastodon config
lineinfile: lineinfile:
path: "{{ mastodon_composer_folder }}/env.production" path: "{{ mastodon_composer_folder }}/.env.production"
line: "SECRET_KEY_BASE={{ mastodon_secret_key_base }}" line: "SECRET_KEY_BASE={{ mastodon_secret_key_base }}"
regexp: "^SECRET_KEY_BASE=" regexp: "^SECRET_KEY_BASE="
backup: true backup: true
@ -129,7 +129,7 @@
- name: Add OTP key to Mastodon config - name: Add OTP key to Mastodon config
lineinfile: lineinfile:
path: "{{ mastodon_composer_folder }}/env.production" path: "{{ mastodon_composer_folder }}/.env.production"
line: "OTP_SECRET={{ mastodon_otp_secret }}" line: "OTP_SECRET={{ mastodon_otp_secret }}"
regexp: "^OTP_SECRET=" regexp: "^OTP_SECRET="
backup: true backup: true
@ -149,7 +149,7 @@
- name: Add Paperclip key to Mastodon config - name: Add Paperclip key to Mastodon config
lineinfile: lineinfile:
path: "{{ mastodon_composer_folder }}/env.production" path: "{{ mastodon_composer_folder }}/.env.production"
line: "PAPERCLIP_SECRET={{ mastodon_paperclip_secret }}" line: "PAPERCLIP_SECRET={{ mastodon_paperclip_secret }}"
regexp: "^PAPERCLIP_SECRET=" regexp: "^PAPERCLIP_SECRET="
backup: true backup: true
@ -174,7 +174,7 @@
- name: Add Paperclip private key to Mastodon config - name: Add Paperclip private key to Mastodon config
lineinfile: lineinfile:
path: "{{ mastodon_composer_folder }}/env.production" path: "{{ mastodon_composer_folder }}/.env.production"
line: "{{ vapid_private_key }}" line: "{{ vapid_private_key }}"
regexp: "^VAPID_PRIVATE_KEY=" regexp: "^VAPID_PRIVATE_KEY="
mode: 0600 mode: 0600
@ -182,7 +182,7 @@
- name: Add Paperclip public key to Mastodon config - name: Add Paperclip public key to Mastodon config
lineinfile: lineinfile:
path: "{{ mastodon_composer_folder }}/env.production" path: "{{ mastodon_composer_folder }}/.env.production"
line: "{{ vapid_public_key }}" line: "{{ vapid_public_key }}"
regexp: "^VAPID_PUBLIC_KEY=" regexp: "^VAPID_PUBLIC_KEY="
mode: 0600 mode: 0600