From b8ad2e78705a7db9e4ae433afcc60f1325549506 Mon Sep 17 00:00:00 2001 From: Nick White Date: Wed, 11 Dec 2019 17:23:48 +0000 Subject: Install trainings from training repo, and ensure they are updated when bookpipeline starts --- roles/tesseractor/tasks/training.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'roles/tesseractor') diff --git a/roles/tesseractor/tasks/training.yml b/roles/tesseractor/tasks/training.yml index 2393ae5..c9e9315 100644 --- a/roles/tesseractor/tasks/training.yml +++ b/roles/tesseractor/tasks/training.yml @@ -1,8 +1,9 @@ --- # Installs tesseract training files -# TODO: get this from somewhere more sensible -- name: Install tesseract training files - copy: src={{ item }} dest=/usr/local/share/tesseract-ocr/tessdata/ - with_items: - - /home/nick/rescribe/2018-natphil/tmp/tessdata/rescribealphav5.traineddata +- name: Get trainings repo + git: dest=/home/{{ ansible_user }}/trainings repo=https://git.rescribe.xyz/trainings + become: no + +- name: Copy trainings + copy: src=/home/{{ ansible_user }}/trainings/ dest=/usr/local/share/tesseract-ocr/tessdata -- cgit v1.2.1-24-ge1ad