Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit 254ae24

Browse files
committed
Drive STRM: jq tasks will now keep nice formatting.
1 parent 103275e commit 254ae24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/drive_strm/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
STRM_PATH="/mnt/strm"
167167
rm -rf ${STRM_PATH}/*
168168
rm ${APP_PATH}/*.db*
169-
jq -c '.page_token = "1"' ${APP_PATH}/token.json >> ${APP_PATH}/tmp.$$.json && mv ${APP_PATH}/tmp.$$.json ${APP_PATH}/token.json
169+
jq -c '.page_token = "1"' ${APP_PATH}/token.json | jq . > ${APP_PATH}/tmp.$$.json && mv ${APP_PATH}/tmp.$$.json ${APP_PATH}/token.json
170170
become: yes
171171
become_user: "{{ user }}"
172172
when: ('drive_strm_rebuild' in ansible_run_tags)

0 commit comments

Comments
 (0)