Pass the correct data types when configuring preview feature
Fixes https://github.com/mother-of-all-self-hosting/ansible-role-nextcloud/issues/19
This commit is contained in:
parent
6e4a728f6d
commit
fd4b567e2b
1 changed files with 8 additions and 1 deletions
|
@ -30,35 +30,42 @@
|
|||
- name: Adjust Nextcloud configuration values related to preview generator
|
||||
ansible.builtin.command:
|
||||
cmd: |-
|
||||
docker exec --user={{ nextcloud_uid }}:{{ nextcloud_gid }} {{ nextcloud_identifier }}-server php /var/www/html/occ {{ item.appType }} {{ item.appConfig }} {{ item.configName }} --value={{ item.value }}
|
||||
docker exec --user={{ nextcloud_uid }}:{{ nextcloud_gid }} {{ nextcloud_identifier }}-server php /var/www/html/occ {{ item.appType }} --type={{ item.type }} --value={{ item.value }} -- {{ item.appConfig }} {{ item.configName }}
|
||||
with_items:
|
||||
- appType: "config:app:set"
|
||||
appConfig: "previewgenerator"
|
||||
configName: "squareSizes"
|
||||
type: string
|
||||
value: "{{ nextcloud_preview_squareSizes }}"
|
||||
- appType: "config:app:set"
|
||||
appConfig: "previewgenerator"
|
||||
configName: "widthSizes"
|
||||
type: string
|
||||
value: "{{ nextcloud_preview_widthSizes }}"
|
||||
- appType: "config:app:set"
|
||||
appConfig: "previewgenerator"
|
||||
configName: "heightSizes"
|
||||
type: string
|
||||
value: "{{ nextcloud_preview_heightSizes }}"
|
||||
- appType: "config:system:set"
|
||||
appConfig: ""
|
||||
configName: "preview_max_x"
|
||||
type: int
|
||||
value: "{{ nextcloud_preview_preview_max_x }}"
|
||||
- appType: "config:system:set"
|
||||
appConfig: ""
|
||||
configName: "preview_max_y"
|
||||
type: int
|
||||
value: "{{ nextcloud_preview_preview_max_y }}"
|
||||
- appType: "config:system:set"
|
||||
appConfig: ""
|
||||
configName: "jpeg_quality"
|
||||
type: int
|
||||
value: "{{ nextcloud_preview_system_jpeg_quality }}"
|
||||
- appType: "config:app:set"
|
||||
appConfig: "preview"
|
||||
configName: "jpeg_quality"
|
||||
type: string
|
||||
value: "{{ nextcloud_preview_app_jpeg_quality }}"
|
||||
|
||||
- name: "Check if {{ nextcloud_preview_first_run_finished_filename }} exists"
|
||||
|
|
Loading…
Add table
Reference in a new issue