Commit c2a25be1 authored by rgaudin's avatar rgaudin
Browse files

Fixed #188: using --delete on EduPi 1.4.10 to automatically remove import resources

parent d29b0731
......@@ -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
......
......@@ -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
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