From b3706d6c1571eb8322f7568c139ce29a360c6258 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 2 Sep 2019 14:44:53 +0100 Subject: Use generic home dirs for lept and tess installs --- roles/tesseractor/tasks/leptonica.yml | 6 +++--- roles/tesseractor/tasks/tesseract.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/roles/tesseractor/tasks/leptonica.yml b/roles/tesseractor/tasks/leptonica.yml index 0f8563c..1c0d010 100644 --- a/roles/tesseractor/tasks/leptonica.yml +++ b/roles/tesseractor/tasks/leptonica.yml @@ -15,7 +15,7 @@ - name: Clone leptonica repository git: repo: https://github.com/nickjwhite/leptonica - dest: /home/ec2-user/src/leptonica + dest: ~/src/leptonica version: addinstall depth: 1 become: no @@ -24,7 +24,7 @@ - name: Build leptonica command: make -f makefile.static {{ item }} args: - chdir: /home/ec2-user/src/leptonica/src + chdir: ~/src/leptonica/src with_items: - nodebug - SHARED=yes shared @@ -34,5 +34,5 @@ - name: Install leptonica command: make -f makefile.static install args: - chdir: /home/ec2-user/src/leptonica/src + chdir: ~/src/leptonica/src when: leptclone.changed diff --git a/roles/tesseractor/tasks/tesseract.yml b/roles/tesseractor/tasks/tesseract.yml index 17c7d60..22816ba 100644 --- a/roles/tesseractor/tasks/tesseract.yml +++ b/roles/tesseractor/tasks/tesseract.yml @@ -15,17 +15,17 @@ - name: Clone tesseract repository git: repo: https://github.com/nickjwhite/tesseract - dest: /home/ec2-user/src/tesseract + dest: ~/src/tesseract version: amibuild depth: 1 become: no register: tessclone - name: Build tesseract - make: chdir=/home/ec2-user/src/tesseract/simplemake + make: chdir=~/src/tesseract/simplemake become: no when: tessclone.changed - name: Install tesseract - make: chdir=/home/ec2-user/src/tesseract/simplemake target=install + make: chdir=~/src/tesseract/simplemake target=install when: tessclone.changed -- cgit v1.2.1-24-ge1ad