blob: da623408845a604f051c569257ca0ef85ae434ab (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
- name: Ensure the directory exists
file:
path: "{{ emacsconf_caption_dir }}/{{ item }}"
state: directory
owner: "{{ emacsconf_user }}"
group: "{{ emacsconf_group }}"
loop:
- scripts
- cache
- files
- name: Create the symlinks
file:
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
- 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 and backup old one
tags: process-prerec
template:
src: "reencode.sh"
dest: "{{ emacsconf_caption_dir }}/scripts/reencode.sh"
owner: "{{ emacsconf_user }}"
group: "{{ emacsconf_group }}"
backup: yes
mode: 0775
- name: Copy scripts for processing
tags: process-prerec
template:
src: "{{ item }}"
dest: "/usr/local/bin/{{ item }}"
owner: "{{ emacsconf_user }}"
group: "{{ emacsconf_group }}"
mode: 0775
loop:
- process-prerec.sh
- talk
- upload.sh
- publish-backstage-index.sh
- update-emacsconf.sh
- thumbnail.sh
- reencode.sh
- run-aeneas.sh
- rename-original.sh
|