1
0
Fork 0

Update adjust_config.yml - remove type for preview generator

adjust-nextcloud-config tags is returning an error `Unknown type integer`  when setting the type to int or integer for jpeg_quality. 
This workaround proposes to remove the "type=" as the playbook works well without
This commit is contained in:
Tiz 2024-10-02 11:29:40 +00:00 committed by GitHub
parent 604d1a6e5f
commit 05a1713402
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -30,22 +30,19 @@
- name: Adjust Nextcloud configuration values related to preview generator - name: Adjust Nextcloud configuration values related to preview generator
ansible.builtin.command: ansible.builtin.command:
cmd: |- cmd: |-
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 }} docker exec --user={{ nextcloud_uid }}:{{ nextcloud_gid }} {{ nextcloud_identifier }}-server php /var/www/html/occ {{ item.appType }} --value={{ item.value }} -- {{ item.appConfig }} {{ item.configName }}
with_items: with_items:
- appType: "config:system:set" - appType: "config:system:set"
appConfig: "" appConfig: ""
configName: "preview_max_x" configName: "preview_max_x"
type: "string"
value: "{{ nextcloud_preview_preview_max_x }}" value: "{{ nextcloud_preview_preview_max_x }}"
- appType: "config:system:set" - appType: "config:system:set"
appConfig: "" appConfig: ""
configName: "preview_max_y" configName: "preview_max_y"
type: "string"
value: "{{ nextcloud_preview_preview_max_y }}" value: "{{ nextcloud_preview_preview_max_y }}"
- appType: "config:app:set" - appType: "config:app:set"
appConfig: "preview" appConfig: "preview"
configName: "jpeg_quality" configName: "jpeg_quality"
type: int
value: "{{ nextcloud_preview_app_jpeg_quality }}" value: "{{ nextcloud_preview_app_jpeg_quality }}"
- name: "Check if {{ nextcloud_preview_first_run_finished_filename }} exists" - name: "Check if {{ nextcloud_preview_first_run_finished_filename }} exists"