From 4ef6627aa71a2c94a2ae7615d5e93d6689ac8b5a Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Tue, 10 Oct 2023 10:21:30 -0400 Subject: copy scripts --- roles/prerec/tasks/main.yml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'roles/prerec/tasks/main.yml') diff --git a/roles/prerec/tasks/main.yml b/roles/prerec/tasks/main.yml index 43c9bd5..da62340 100644 --- a/roles/prerec/tasks/main.yml +++ b/roles/prerec/tasks/main.yml @@ -1,13 +1,28 @@ - name: Ensure the directory exists file: - path: "{{ emacsconf_caption_dir }}/scripts" + path: "{{ emacsconf_caption_dir }}/{{ item }}" state: directory owner: "{{ emacsconf_user }}" group: "{{ emacsconf_group }}" -- name: Create the symlink + loop: + - scripts + - cache + - files +- name: Create the symlinks file: - src: "{{ emacsconf_caption_dir }}/scripts" - dest: "/home/{{ emacsconf_user }}/scripts" + src: "{{ emacsconf_caption_dir }}/{{ item }}" + dest: "/home/{{ emacsconf_user }}/{{ item }}" + owner: "{{ emacsconf_user }}" + group: "{{ emacsconf_group }}" + state: link + loop: + - scripts + - cache + - files +- name: Create the symlinks + file: + src: "{{ emacsconf_caption_dir }}" + dest: "/home/{{ emacsconf_user }}/current" owner: "{{ emacsconf_user }}" group: "{{ emacsconf_group }}" state: link @@ -27,7 +42,7 @@ backup: yes mode: 0775 - name: Copy scripts for processing - tags: process-prerec, wip + tags: process-prerec template: src: "{{ item }}" dest: "/usr/local/bin/{{ item }}" @@ -43,3 +58,4 @@ - thumbnail.sh - reencode.sh - run-aeneas.sh + - rename-original.sh -- cgit v1.2.3