Commit 7e611f18 by Feanil Patel

Use the unzip function since.

Unarchive is not the right function since it is for transferring archives from the local machine to the remote one.
parent 0c2b158e
---
- 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