Commit 75364fd2 by Feanil Patel

Merge pull request #1153 from edx/feanil/update_nltk

Use the unzip function since.
parents 499fd66b 7e611f18
--- ---
- name: Install unzip
apt: pkg=unzip state=present
- name: create the nltk data directory and subdirectories - name: create the nltk data directory and subdirectories
file: path={{ NLTK_DATA_DIR }}/{{ item.path|dirname }} state=directory file: path={{ NLTK_DATA_DIR }}/{{ item.path|dirname }} state=directory
with_items: NLTK_DATA with_items: NLTK_DATA
...@@ -16,9 +19,8 @@ ...@@ -16,9 +19,8 @@
- deploy - deploy
- name: unarchive nltk data - name: unarchive nltk data
unarchive: > shell: >
src={{ NLTK_DATA_DIR }}/{{ item.url|basename }} unzip {{NLTK_DATA_DIR}}/{{ item.url|basename }} chdir="{{ NLTK_DATA_DIR }}/{{ item.path|dirname }}"
dest={{ NLTK_DATA_DIR }}/{{ item.path|dirname }}
with_items: NLTK_DATA with_items: NLTK_DATA
when: nltk_download|changed when: nltk_download|changed
tags: tags:
......
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