summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hosts2
-rw-r--r--roles/preprocessor/tasks/main.yml (renamed from roles/scantailor/tasks/main.yml)1
-rw-r--r--roles/preprocessor/tasks/pdfimages.yml5
-rw-r--r--roles/preprocessor/tasks/scantailor.yml (renamed from roles/scantailor/tasks/scantailor.yml)0
-rw-r--r--site.yml6
5 files changed, 10 insertions, 4 deletions
diff --git a/hosts b/hosts
index 5393c32..2272d18 100644
--- a/hosts
+++ b/hosts
@@ -7,5 +7,5 @@ devami
[ocropussies]
devami
-[scantailors]
+[preprocessors]
devami
diff --git a/roles/scantailor/tasks/main.yml b/roles/preprocessor/tasks/main.yml
index 788df22..e5823e4 100644
--- a/roles/scantailor/tasks/main.yml
+++ b/roles/preprocessor/tasks/main.yml
@@ -1,2 +1,3 @@
---
+- include: pdfimages.yml
- include: scantailor.yml
diff --git a/roles/preprocessor/tasks/pdfimages.yml b/roles/preprocessor/tasks/pdfimages.yml
new file mode 100644
index 0000000..81bd1eb
--- /dev/null
+++ b/roles/preprocessor/tasks/pdfimages.yml
@@ -0,0 +1,5 @@
+---
+# Installs pdfimages
+
+- name: Install poppler-utils for pdfimages
+ package: name=poppler-utils state=present
diff --git a/roles/scantailor/tasks/scantailor.yml b/roles/preprocessor/tasks/scantailor.yml
index 8a8820e..8a8820e 100644
--- a/roles/scantailor/tasks/scantailor.yml
+++ b/roles/preprocessor/tasks/scantailor.yml
diff --git a/site.yml b/site.yml
index 71334eb..85a6cd2 100644
--- a/site.yml
+++ b/site.yml
@@ -28,9 +28,9 @@
roles:
- ocropuser
-- name: Configure servers for Scantailor
- hosts: scantailors
+- name: Configure servers for preprocessing
+ hosts: preprocessors
become: yes
roles:
- - scantailor
+ - preprocessor