From dfd6a463a14d6bc67f84595cd3b51bdba90eac32 Mon Sep 17 00:00:00 2001 From: Nick White Date: Sun, 6 Jan 2019 09:52:42 +0000 Subject: Use my branch for ocropus, and build it without become --- roles/ocropuser/tasks/ocropus.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'roles/ocropuser/tasks') 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: -- cgit v1.2.1-24-ge1ad