Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ideascube
ARCHIVED Kiwix Hotspot
Commits
8476c76d
Commit
8476c76d
authored
Jun 26, 2019
by
rgaudin
Browse files
remove leftover files for kalite and aflatoun
parent
6aa5d72c
Changes
2
Hide whitespace changes
Inline
Side-by-side
ansiblecube/roles/aflatoun_content/tasks/main.yml
View file @
8476c76d
...
...
@@ -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
ansiblecube/roles/kalite_content/tasks/main.yml
View file @
8476c76d
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment