From 0b07963c81155b621dd45b878b869a78b8c9de49 Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Sat, 5 Nov 2022 07:55:05 -0400 Subject: Caption updates --- roles/caption/tasks/main.yml | 39 ++++++++++++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 9 deletions(-) (limited to 'roles/caption/tasks') diff --git a/roles/caption/tasks/main.yml b/roles/caption/tasks/main.yml index c1511cf..a69d848 100644 --- a/roles/caption/tasks/main.yml +++ b/roles/caption/tasks/main.yml @@ -30,20 +30,41 @@ state: present - name: Ensure the directory exists file: - path: "{{ emacsconf_caption_dir }}" + path: "{{ emacsconf_caption_dir }}/scripts" state: directory -- name: Copy the script for processing the files - tags: process-captions + owner: "{{ emacsconf_user }}" + group: "{{ emacsconf_group }}" +- name: Recreate encoding script + tags: process-prerec template: - src: process-captions.py - dest: "{{ emacsconf_caption_dir }}/process-captions.py" + src: "{{ item }}" + dest: "{{ emacsconf_caption_dir }}/scripts/{{ item }}" + owner: "{{ emacsconf_user }}" + group: "{{ emacsconf_group }}" + force: no mode: 0775 -- name: Copy the inotify script - tags: process-captions + loop: + - reencode.sh +- name: Copy scripts for processing + tags: process-prerec template: - src: inotify-process-captions.sh - dest: "{{ emacsconf_caption_dir }}/inotify-process-captions.sh" + src: "{{ item }}" + dest: "{{ emacsconf_caption_dir }}/scripts/{{ item }}" + owner: "{{ emacsconf_user }}" + group: "{{ emacsconf_group }}" mode: 0775 + loop: + - process-captions.py + - process-prerec.sh + - update-task-status.sh + - upload.sh + - run-aeneas.sh +# - name: Copy the inotify script +# tags: process-captions +# template: +# src: inotify-process-captions.sh +# dest: "{{ emacsconf_caption_dir }}/inotify-process-captions.sh" +# mode: 0775 - name: Copy talks.json tags: talks-json template: -- cgit v1.2.3