summaryrefslogtreecommitdiffstats
path: root/roles/prerec
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2022-11-05 08:02:44 -0400
committerSacha Chua <sacha@sachachua.com>2022-11-05 08:02:44 -0400
commit5bf4ab50e13a9be2923ddebe69525b40df8ab3bc (patch)
treec06ff0086d94135871e30981fa80a9112f990cf4 /roles/prerec
parent5f83a3fbeb91dea9c77925e83b09b27427435cb9 (diff)
downloademacsconf-ansible-5bf4ab50e13a9be2923ddebe69525b40df8ab3bc.tar.xz
emacsconf-ansible-5bf4ab50e13a9be2923ddebe69525b40df8ab3bc.zip
Separate caption and prerec roles
Diffstat (limited to '')
-rw-r--r--roles/prerec/tasks/main.yml28
-rwxr-xr-xroles/prerec/templates/process-prerec.sh (renamed from roles/caption/templates/process-prerec.sh)0
-rwxr-xr-xroles/prerec/templates/run-aeneas.sh (renamed from roles/caption/templates/run-aeneas.sh)0
-rwxr-xr-xroles/prerec/templates/update-task-status.sh (renamed from roles/caption/templates/update-task-status.sh)0
-rwxr-xr-xroles/prerec/templates/upload.sh (renamed from roles/caption/templates/upload.sh)0
5 files changed, 28 insertions, 0 deletions
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
diff --git a/roles/caption/templates/process-prerec.sh b/roles/prerec/templates/process-prerec.sh
index e49aa72..e49aa72 100755
--- a/roles/caption/templates/process-prerec.sh
+++ b/roles/prerec/templates/process-prerec.sh
diff --git a/roles/caption/templates/run-aeneas.sh b/roles/prerec/templates/run-aeneas.sh
index 6f40134..6f40134 100755
--- a/roles/caption/templates/run-aeneas.sh
+++ b/roles/prerec/templates/run-aeneas.sh
diff --git a/roles/caption/templates/update-task-status.sh b/roles/prerec/templates/update-task-status.sh
index 18b7c1b..18b7c1b 100755
--- a/roles/caption/templates/update-task-status.sh
+++ b/roles/prerec/templates/update-task-status.sh
diff --git a/roles/caption/templates/upload.sh b/roles/prerec/templates/upload.sh
index f723d29..f723d29 100755
--- a/roles/caption/templates/upload.sh
+++ b/roles/prerec/templates/upload.sh