summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--roles/ocropuser/tasks/ocropus.yml10
1 files changed, 9 insertions, 1 deletions
diff --git a/roles/ocropuser/tasks/ocropus.yml b/roles/ocropuser/tasks/ocropus.yml
index 51025e6..de626e5 100644
--- a/roles/ocropuser/tasks/ocropus.yml
+++ b/roles/ocropuser/tasks/ocropus.yml
@@ -20,12 +20,20 @@
- name: Clone ocropus repository
git:
- repo: https://github.com/tmbdev/ocropy/
+ repo: https://github.com/nickjwhite/ocropy
dest: /home/ec2-user/src/ocropy
depth: 1
+ version: currentworking
become: no
register: ocroclone
+- name: Build ocropus
+ command: python setup.py build
+ args:
+ chdir: /home/ec2-user/src/ocropy
+ become: no
+ when: ocroclone.changed
+
- name: Install ocropus
command: python setup.py install
args: