summaryrefslogtreecommitdiff
path: root/roles/tesseractor/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/tesseractor/tasks')
-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