From 5bf4ab50e13a9be2923ddebe69525b40df8ab3bc Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Sat, 5 Nov 2022 08:02:44 -0400 Subject: Separate caption and prerec roles --- roles/prerec/tasks/main.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 roles/prerec/tasks/main.yml (limited to 'roles/prerec/tasks') diff --git a/roles/prerec/tasks/main.yml b/roles/prerec/tasks/main.yml new file mode 100644 index 0000000..5241531 --- /dev/null +++ b/roles/prerec/tasks/main.yml @@ -0,0 +1,28 @@ +- name: Ensure the directory exists + file: + path: "{{ emacsconf_caption_dir }}/scripts" + state: directory + owner: "{{ emacsconf_user }}" + group: "{{ emacsconf_group }}" +- name: Recreate encoding script only if it's not there + tags: process-prerec + template: + src: "reencode.sh" + dest: "{{ emacsconf_caption_dir }}/scripts/reencode.sh" + owner: "{{ emacsconf_user }}" + group: "{{ emacsconf_group }}" + # This avoids overwriting zaeph's + force: no + mode: 0775 +- name: Copy scripts for processing + tags: process-prerec + template: + src: "{{ item }}" + dest: "{{ emacsconf_caption_dir }}/scripts/{{ item }}" + owner: "{{ emacsconf_user }}" + group: "{{ emacsconf_group }}" + mode: 0775 + loop: + - process-prerec.sh + - update-task-status.sh + - upload.sh -- cgit v1.2.3