fixed remarks by meaz; added extra custom frontend config task

This commit is contained in:
muppeth 2023-01-11 00:15:59 +01:00
parent 7730a68c9b
commit 19a6d51abe
Signed by: muppeth
GPG Key ID: 0EBC7B9848D04031
2 changed files with 16 additions and 1 deletions

View File

@ -49,7 +49,7 @@ pleroma_db_superuser: "postgres"
pleroma_db_passwd: 'changeme'
pleroma_db: "pleroma"
pleroma_db_user: "admin"
pleroma_data_dir: "/srv/pleroma_data/"
pleroma_data_dir: "/srv/pleroma_data"
pleroma_smtp: 'false'
pleroma_ldap: 'false'
pleroma_admin: 'true'
@ -80,6 +80,11 @@ pleroma_frontends:
- name: 'pleroma-fe'
conf: 'pleroma'
ref: 'develop'
# If you want to upload custom config files for frontends, specify below using the example
#pleroma_frontend_custom_configs:
# - name: 'mangane'
# filename: 'soapbox.json'
# confpath: 'static/instance/soapbox.json'
#Postgres
postgresql_version: 13

View File

@ -39,3 +39,13 @@
owner: '{{ pleroma_user }}'
group: '{{ pleroma_group }}'
mode: 0775
- name: '[Frontend] - Add custom configs'
copy:
src: '{{pleroma_extra_files_path }}/{{ item.name }}/{{ item.filename }}'
dest: '{{ pleroma_data_dir }}/static/frontends/{{ item.name }}/{{ item.confpath }}'
owner: '{{ pleroma_user }}'
group: '{{ pleroma_group }}'
mode: 0775
loop: '{{ pleroma_frontend_custom_configs }}'
when: 'pleroma_frontend_custom_configs is defined'