summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-09-02 14:44:53 +0100
committerNick White <git@njw.name>2019-09-02 14:44:53 +0100
commitb3706d6c1571eb8322f7568c139ce29a360c6258 (patch)
tree4791b1d532959005d4dd096d92ae7cd3580ba199
parentea698bf7bcdeae4aa8eb5820c33d5b2c35b5223f (diff)
Use generic home dirs for lept and tess installs
-rw-r--r--roles/tesseractor/tasks/leptonica.yml6
-rw-r--r--roles/tesseractor/tasks/tesseract.yml6
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