summaryrefslogtreecommitdiff
path: root/roles/tesseractor
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-09-02 15:02:18 +0100
committerNick White <git@njw.name>2019-09-02 15:02:18 +0100
commit332e8244d94ae28572585433377a6d1449872eb1 (patch)
treefcaf9362f3df7ad5f4601010346fc6160025e46a /roles/tesseractor
parent40c95ffb3dd4b24253ae6687553d9120b65b1793 (diff)
Correct usage of homedir in lept and tess; was failing when become was used for the install part; will be robust now
Diffstat (limited to 'roles/tesseractor')
-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 2aad7a7..7d92d84 100644
--- a/roles/tesseractor/tasks/leptonica.yml
+++ b/roles/tesseractor/tasks/leptonica.yml
@@ -9,7 +9,7 @@
- name: Clone leptonica repository
git:
repo: https://github.com/nickjwhite/leptonica
- dest: ~/src/leptonica
+ dest: /home/{{ ansible_user }}/src/leptonica
version: addinstall
depth: 1
become: no
@@ -18,7 +18,7 @@
- name: Build leptonica
command: make -f makefile.static {{ item }}
args:
- chdir: ~/src/leptonica/src
+ chdir: /home/{{ ansible_user }}/src/leptonica/src
with_items:
- nodebug
- SHARED=yes shared
@@ -28,5 +28,5 @@
- name: Install leptonica
command: make -f makefile.static install
args:
- chdir: ~/src/leptonica/src
+ chdir: /home/{{ ansible_user }}/src/leptonica/src
when: leptclone.changed
diff --git a/roles/tesseractor/tasks/tesseract.yml b/roles/tesseractor/tasks/tesseract.yml
index 802e30a..e672b1c 100644
--- a/roles/tesseractor/tasks/tesseract.yml
+++ b/roles/tesseractor/tasks/tesseract.yml
@@ -9,17 +9,17 @@
- name: Clone tesseract repository
git:
repo: https://github.com/nickjwhite/tesseract
- dest: ~/src/tesseract
+ dest: /home/{{ ansible_user }}/src/tesseract
version: amibuild
depth: 1
become: no
register: tessclone
- name: Build tesseract
- make: chdir=~/src/tesseract/simplemake
+ make: chdir=/home/{{ ansible_user }}/src/tesseract/simplemake
become: no
when: tessclone.changed
- name: Install tesseract
- make: chdir=~/src/tesseract/simplemake target=install
+ make: chdir=/home/{{ ansible_user }}/src/tesseract/simplemake target=install
when: tessclone.changed