Commit 8476c76d authored by rgaudin's avatar rgaudin
Browse files

remove leftover files for kalite and aflatoun

parent 6aa5d72c
......@@ -28,3 +28,10 @@
command: "{{ aflatoun_env }}/bin/kalite manage retrievecontentpack local {{ item }} {{ aflatoun_langpack_prefix }}{{ item }}.zip"
with_items: "{{ ansible_local.config.aflatoun_languages }}"
tags: move-content
- name: delete language packs
file:
path: "{{ aflatoun_langpack_prefix }}{{ item }}.zip"
state: absent
with_items: "{{ ansible_local.config.aflatoun_languages }}"
tags: move-content
......@@ -10,12 +10,26 @@
with_items: "{{ ansible_local.config.kalite_languages | default(omit) }}"
tags: move-content
- name: delete language packs
file:
path: "{{ kalite_langpack_prefix }}{{ item }}.zip"
state: absent
with_items: "{{ ansible_local.config.kalite_languages | default(omit) }}"
tags: move-content
# downloaded videos were placed in a different location on data part
- name: move downloaded videos to kalite folder
shell: mv {{ kalite_videos_prefix }}{{ item }}/* {{ data_path }}/kalite/content/
with_items: "{{ ansible_local.config.kalite_languages | default(omit) }}"
tags: move-content
- name: delete empty videos folders
file:
path: "{{ kalite_videos_prefix }}{{ item }}"
state: absent
with_items: "{{ ansible_local.config.kalite_languages | default(omit) }}"
tags: move-content
# loop over content folder to find and reckon downloaded video files
- name: Perfom a video scan on the device
become: yes
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment