summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2022-11-19 10:59:37 -0500
committerSacha Chua <sacha@sachachua.com>2022-11-19 10:59:37 -0500
commit4d1100b931a0d921883a66f857fd89999fb63a3e (patch)
tree3007fb94ce806a631db1add7c7a4007abb6bc056 /roles
parentfd4668297628c30ae97f52e7772f58f5026577f0 (diff)
downloademacsconf-ansible-4d1100b931a0d921883a66f857fd89999fb63a3e.tar.xz
emacsconf-ansible-4d1100b931a0d921883a66f857fd89999fb63a3e.zip
prepare for dry run
Diffstat (limited to 'roles')
-rw-r--r--roles/obs/tasks/track.yml3
-rw-r--r--roles/prerec/tasks/main.yml2
-rwxr-xr-xroles/prerec/templates/process-prerec.sh4
3 files changed, 4 insertions, 5 deletions
diff --git a/roles/obs/tasks/track.yml b/roles/obs/tasks/track.yml
index fe49116..889c9fd 100644
--- a/roles/obs/tasks/track.yml
+++ b/roles/obs/tasks/track.yml
@@ -86,9 +86,6 @@
state: directory
owner: "{{ emacsconf_user }}"
group: "{{ emacsconf_group }}"
- - name: Debug mumble
- debug:
- var: mumble_certificates['dev']
- name: Set up mumble
tags: mumble
template:
diff --git a/roles/prerec/tasks/main.yml b/roles/prerec/tasks/main.yml
index 032e3d2..15adde2 100644
--- a/roles/prerec/tasks/main.yml
+++ b/roles/prerec/tasks/main.yml
@@ -28,3 +28,5 @@
- upload.sh
- publish-backstage-index.sh
- update-emacsconf.sh
+ - thumbnail.sh
+
diff --git a/roles/prerec/templates/process-prerec.sh b/roles/prerec/templates/process-prerec.sh
index e49aa72..8fdca72 100755
--- a/roles/prerec/templates/process-prerec.sh
+++ b/roles/prerec/templates/process-prerec.sh
@@ -10,9 +10,9 @@ if ! ( screen -ls | grep -q $SLUG ); then
screen -dmS $SCREEN
fi
( cd /data/emacsconf/cache; ./update-cache )
-/data/emacsconf/2022/scripts/update-task-status.sh $SLUG "WAITING_FOR_PREREC" "PROCESSING"
+# /data/emacsconf/2022/scripts/update-task-status.sh $SLUG "WAITING_FOR_PREREC" "PROCESSING"
#if [[ ! -f "$REENCODED" ]]; then
-screen -S $SCREEN -X screen -t reencode-$SLUG /bin/bash -c "/data/emacsconf/2022/scripts/reencode.sh \"$ORIGINAL\" \"$REENCODED\" && /data/emacsconf/2022/scripts/upload.sh $REENCODED && exec /bin/bash" &
+screen -S $SCREEN -X screen -t reencode-$SLUG /bin/bash -c "/data/emacsconf/2022/scripts/reencode.sh \"$ORIGINAL\" \"$REENCODED\" && /data/emacsconf/2022/scripts/upload.sh $REENCODED $MAIN && /data/emacsconf/2022/scripts/thumbnail.sh \"$MAIN\" && /data/emacsconf/2022/scripts/upload.sh $(echo "$MAIN" | sed s/webm$/png/) exec /bin/bash" &
#fi
screen -S $SCREEN -X screen -t captions-$SLUG /bin/bash -c "/data/emacsconf/2022/scripts/process-captions.py $(dirname $ORIGINAL); /data/emacsconf/2022/scripts/update-task-status.sh $SLUG PROCESSING TO_ASSIGN; exec /bin/bash"
screen -x $SCREEN