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
file: path={{ NLTK_DATA_DIR }}/{{ item.path|dirname }} state=directory
with_items: NLTK_DATA
......@@ -16,9 +19,8 @@
- deploy
- name: unarchive nltk data
unarchive: >
src={{ NLTK_DATA_DIR }}/{{ item.url|basename }}
dest={{ NLTK_DATA_DIR }}/{{ item.path|dirname }}
shell: >
unzip {{NLTK_DATA_DIR}}/{{ item.url|basename }} chdir="{{ NLTK_DATA_DIR }}/{{ item.path|dirname }}"
with_items: NLTK_DATA
when: nltk_download|changed
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