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 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'roles/tesseractor/tasks/leptonica.yml') 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 -- cgit v1.2.1-24-ge1ad