summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/ocropuser/tasks/main.yml2
-rw-r--r--roles/ocropuser/tasks/ocropus.yml41
-rw-r--r--roles/preprocessor/tasks/main.yml3
-rw-r--r--roles/preprocessor/tasks/pdfimages.yml5
-rw-r--r--roles/preprocessor/tasks/scantailor.yml41
5 files changed, 0 insertions, 92 deletions
diff --git a/roles/ocropuser/tasks/main.yml b/roles/ocropuser/tasks/main.yml
deleted file mode 100644
index 79ae937..0000000
--- a/roles/ocropuser/tasks/main.yml
+++ /dev/null
@@ -1,2 +0,0 @@
----
-- include: ocropus.yml
diff --git a/roles/ocropuser/tasks/ocropus.yml b/roles/ocropuser/tasks/ocropus.yml
deleted file mode 100644
index de626e5..0000000
--- a/roles/ocropuser/tasks/ocropus.yml
+++ /dev/null
@@ -1,41 +0,0 @@
----
-# Installs ocropus
-
-- name: Install ocropus dependencies
- package: name={{ item }} state=present
- with_items:
- - git
- - python-lxml
- - python-pillow
- - python2-pip
- - scipy
- - tkinter
-
-- name: Install extra dependencies with pip (as user)
- pip: name={{ item }} extra_args="--user -U"
- become: no
- with_items:
- - matplotlib
- - numpy
-
-- name: Clone ocropus repository
- git:
- repo: https://github.com/nickjwhite/ocropy
- dest: /home/ec2-user/src/ocropy
- depth: 1
- version: currentworking
- become: no
- register: ocroclone
-
-- name: Build ocropus
- command: python setup.py build
- args:
- chdir: /home/ec2-user/src/ocropy
- become: no
- when: ocroclone.changed
-
-- name: Install ocropus
- command: python setup.py install
- args:
- chdir: /home/ec2-user/src/ocropy
- when: ocroclone.changed
diff --git a/roles/preprocessor/tasks/main.yml b/roles/preprocessor/tasks/main.yml
deleted file mode 100644
index e5823e4..0000000
--- a/roles/preprocessor/tasks/main.yml
+++ /dev/null
@@ -1,3 +0,0 @@
----
-- include: pdfimages.yml
-- include: scantailor.yml
diff --git a/roles/preprocessor/tasks/pdfimages.yml b/roles/preprocessor/tasks/pdfimages.yml
deleted file mode 100644
index 81bd1eb..0000000
--- a/roles/preprocessor/tasks/pdfimages.yml
+++ /dev/null
@@ -1,5 +0,0 @@
----
-# Installs pdfimages
-
-- name: Install poppler-utils for pdfimages
- package: name=poppler-utils state=present
diff --git a/roles/preprocessor/tasks/scantailor.yml b/roles/preprocessor/tasks/scantailor.yml
deleted file mode 100644
index 8a8820e..0000000
--- a/roles/preprocessor/tasks/scantailor.yml
+++ /dev/null
@@ -1,41 +0,0 @@
----
-# Installs scantailor
-
-- name: Install scantailor dependencies
- package: name={{ item }} state=present
- with_items:
- - boost-devel
- - cmake
- - gcc-c++
- - git
- - libjpeg-turbo-devel
- - libpng-devel
- - libtiff-devel
- - libXrender-devel
- - make
- - qt-devel
- - zlib-devel
-
-- name: Clone scantailor repository
- git:
- repo: https://github.com/scantailor/scantailor
- dest: /home/ec2-user/src/scantailor
- depth: 1
- become: no
- register: scanclone
-
-- name: Configure and build scantailor
- command: "{{ item }}"
- args:
- chdir: /home/ec2-user/src/scantailor
- with_items:
- - cmake .
- - make
- become: no
- when: scanclone.changed
-
-- name: Install scantailor
- command: make install
- args:
- chdir: /home/ec2-user/src/scantailor
- when: scanclone.changed