summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/tesseractor/tasks/tesseract.yml12
-rw-r--r--roles/tesstrainer/tasks/tesseract.yml14
2 files changed, 9 insertions, 17 deletions
diff --git a/roles/tesseractor/tasks/tesseract.yml b/roles/tesseractor/tasks/tesseract.yml
index afb408a..43e08ab 100644
--- a/roles/tesseractor/tasks/tesseract.yml
+++ b/roles/tesseractor/tasks/tesseract.yml
@@ -5,17 +5,13 @@
package: name={{ item }} state=present
with_items:
- gcc-c++
- - make
- - libpng12-devel
+ - git
- libjpeg-turbo-devel
+ - libpng12-devel
- libtiff-devel
+ - make
- zlib-devel
-- name: Install extra tesseract development dependencies
- package: name={{ item }} state=present
- with_items:
- - git
-
- name: Clone leptonica repository
git:
repo: https://github.com/nickjwhite/leptonica
@@ -30,8 +26,8 @@
args:
chdir: /home/ec2-user/src/leptonica/src
with_items:
- - SHARED=yes shared
- nodebug
+ - SHARED=yes shared
become: no
when: leptclone.changed
diff --git a/roles/tesstrainer/tasks/tesseract.yml b/roles/tesstrainer/tasks/tesseract.yml
index 911759a..477c0e4 100644
--- a/roles/tesstrainer/tasks/tesseract.yml
+++ b/roles/tesstrainer/tasks/tesseract.yml
@@ -5,23 +5,19 @@
package: name={{ item }} state=present
with_items:
- gcc-c++
- - make
- - libpng12-devel
+ - git
- libjpeg-turbo-devel
+ - libpng12-devel
- libtiff-devel
+ - make
- zlib-devel
- name: Install tesseract training dependencies
package: name={{ item }} state=present
with_items:
+ - cairo-devel
- libicu-devel
- pango-devel
- - cairo-devel
-
-- name: Install extra tesseract development dependencies
- package: name={{ item }} state=present
- with_items:
- - git
- name: Clone leptonica repository
git:
@@ -37,8 +33,8 @@
args:
chdir: /home/ec2-user/src/leptonica/src
with_items:
- - SHARED=yes shared
- nodebug
+ - SHARED=yes shared
become: no
when: leptclone.changed