blob: 954c5a7b3415c0d5bad988fdd127df3c39c8e1f3 (
plain) (
tree)
|
|
- name: Ensure the directory exists
file:
path: "{{ emacsconf_caption_dir }}/scripts"
state: directory
owner: "{{ emacsconf_user }}"
group: "{{ emacsconf_group }}"
- name: Create the symlink
file:
src: "{{ emacsconf_caption_dir }}/scripts"
dest: "/home/{{ emacsconf_user }}/scripts"
owner: "{{ emacsconf_user }}"
group: "{{ emacsconf_group }}"
state: link
- name: Add it to the path
lineinfile:
line: export PATH=~/scripts:$PATH
path: /home/{{ emacsconf_user }}/.bashrc
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
- publish-backstage-index.sh
- update-emacsconf.sh
- thumbnail.sh
|