summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-01-06 09:52:42 +0000
committerNick White <git@njw.name>2019-01-06 09:52:42 +0000
commitdfd6a463a14d6bc67f84595cd3b51bdba90eac32 (patch)
treefe02f0bcf2c43c4417dfd6f267978d48ac6ef9be
parentf5385e25f40c8c9140bb9deacbfda42eaa5c8a1c (diff)
Use my branch for ocropus, and build it without become
-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: