summaryrefslogtreecommitdiff
path: root/roles/tesseractor/tasks
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-09-02 14:45:54 +0100
committerNick White <git@njw.name>2019-09-02 14:45:59 +0100
commit4ada6b33ccce63587a9e2cfff23b91a86ecd0b93 (patch)
tree333a6bcdc14ae549ed0e26239cd384ee016fdfbf /roles/tesseractor/tasks
parentb3706d6c1571eb8322f7568c139ce29a360c6258 (diff)
Switch to apt to install dependencies, and the debian package names, for lept and tess
apt is needed as package: expects aptitude, which we don't use.
Diffstat (limited to 'roles/tesseractor/tasks')
-rw-r--r--roles/tesseractor/tasks/leptonica.yml12
-rw-r--r--roles/tesseractor/tasks/tesseract.yml12
2 files changed, 6 insertions, 18 deletions
diff --git a/roles/tesseractor/tasks/leptonica.yml b/roles/tesseractor/tasks/leptonica.yml
index 1c0d010..2aad7a7 100644
--- a/roles/tesseractor/tasks/leptonica.yml
+++ b/roles/tesseractor/tasks/leptonica.yml
@@ -2,15 +2,9 @@
# Installs leptonica
- name: Install leptonica dependencies
- package: name={{ item }} state=present
- with_items:
- - gcc-c++
- - git
- - libjpeg-turbo-devel
- - libpng12-devel
- - libtiff-devel
- - make
- - zlib-devel
+ apt:
+ name: ['g++', 'git', 'libjpeg62-turbo-dev', 'libpng-dev', 'libtiff-dev', 'make', 'zlib1g-dev']
+ state: present
- name: Clone leptonica repository
git:
diff --git a/roles/tesseractor/tasks/tesseract.yml b/roles/tesseractor/tasks/tesseract.yml
index 22816ba..802e30a 100644
--- a/roles/tesseractor/tasks/tesseract.yml
+++ b/roles/tesseractor/tasks/tesseract.yml
@@ -2,15 +2,9 @@
# Installs tesseract
- name: Install tesseract dependencies
- package: name={{ item }} state=present
- with_items:
- - gcc-c++
- - git
- - libjpeg-turbo-devel
- - libpng12-devel
- - libtiff-devel
- - make
- - zlib-devel
+ apt:
+ name: ['g++', 'git', 'libjpeg62-turbo-dev', 'libpng-dev', 'libtiff-dev', 'make', 'zlib1g-dev']
+ state: present
- name: Clone tesseract repository
git: