From 332e8244d94ae28572585433377a6d1449872eb1 Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 2 Sep 2019 15:02:18 +0100 Subject: Correct usage of homedir in lept and tess; was failing when become was used for the install part; will be robust now --- roles/tesseractor/tasks/leptonica.yml | 6 +++--- roles/tesseractor/tasks/tesseract.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'roles') 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 -- cgit v1.2.1-24-ge1ad