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
c2a25be1
Commit
c2a25be1
authored
Jul 25, 2018
by
rgaudin
Browse files
Fixed
#188
: using --delete on EduPi 1.4.10 to automatically remove import resources
parent
d29b0731
Changes
2
Hide whitespace changes
Inline
Side-by-side
ansiblecube/group_vars/all
View file @
c2a25be1
...
...
@@ -34,7 +34,7 @@ kernel_version: "4.14.34"
kiwix_version: "0.6.0"
kalite_version: "0.17.4"
ideascube_version: "0.37.2"
edupi_version: "1.4.
7
"
edupi_version: "1.4.
10
"
python3_version: "3.5"
mediawiki_major_version: 1.31
mediawiki_version: 1.31.0
...
...
ansiblecube/roles/edupi_content/tasks/main.yml
View file @
c2a25be1
...
...
@@ -2,5 +2,13 @@
-
name
:
Install the user-provided resources
become
:
yes
become_user
:
"
{{
username
}}"
command
:
"
{{
edupi_env
}}/bin/python3
{{
edupi_root
}}/manage.py
import-from-folder
{{
edupi_resources_path
}}"
command
:
"
{{
edupi_env
}}/bin/python3
{{
edupi_root
}}/manage.py
import-from-folder
--delete
{{
edupi_resources_path
}}"
tags
:
move-content
-
name
:
remove user provided resources (already imported)
become
:
yes
become_user
:
"
{{
username
}}"
file
:
path
:
"
{{
edupi_resources_path
}}"
state
:
absent
tags
:
move-content
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