diff options
author | Nick White <git@njw.name> | 2020-05-04 17:39:38 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2020-05-04 17:39:38 +0100 |
commit | 2a1971bc3612904cc4b3cbca7a562e175535b054 (patch) | |
tree | 3cafd6a21113c47da6f3046f911e691c387afbd4 /roles | |
parent | ee372af8c07fa5f4c78ce0add4d779a8efb61625 (diff) |
Fix up tesseract rules and add useful stuff for training
Diffstat (limited to 'roles')
-rw-r--r-- | roles/tesseractor/tasks/leptonica.yml | 3 | ||||
-rw-r--r-- | roles/tesseractor/tasks/main.yml | 1 | ||||
-rw-r--r-- | roles/tesseractor/tasks/tesseract.yml | 7 | ||||
-rw-r--r-- | roles/tesseractor/tasks/usefulbits.yml | 15 |
4 files changed, 18 insertions, 8 deletions
diff --git a/roles/tesseractor/tasks/leptonica.yml b/roles/tesseractor/tasks/leptonica.yml index 9b07c9b..deee245 100644 --- a/roles/tesseractor/tasks/leptonica.yml +++ b/roles/tesseractor/tasks/leptonica.yml @@ -20,7 +20,6 @@ version: addinstall depth: 1 become: no - register: leptclone - name: Build leptonica command: make -f makefile.static {{ item }} @@ -30,11 +29,9 @@ - nodebug - SHARED=yes shared become: no - when: leptclone.changed - name: Install leptonica command: make -f makefile.static install args: chdir: /home/{{ ansible_user }}/src/leptonica/src - when: leptclone.changed notify: update ld.so diff --git a/roles/tesseractor/tasks/main.yml b/roles/tesseractor/tasks/main.yml index e406e2f..50bd106 100644 --- a/roles/tesseractor/tasks/main.yml +++ b/roles/tesseractor/tasks/main.yml @@ -3,3 +3,4 @@ - include: leptonica.yml - include: tesseract.yml - include: training.yml +- include: usefulbits.yml diff --git a/roles/tesseractor/tasks/tesseract.yml b/roles/tesseractor/tasks/tesseract.yml index 56d8750..892782b 100644 --- a/roles/tesseractor/tasks/tesseract.yml +++ b/roles/tesseractor/tasks/tesseract.yml @@ -28,18 +28,15 @@ version: amibuild depth: 1 become: no - register: tessclone - name: Build tesseract and training tools command: make all training args: - chdir=/home/{{ ansible_user }}/src/tesseract/simplemake + chdir: /home/{{ ansible_user }}/src/tesseract/simplemake become: no - when: tessclone.changed - name: Install tesseract and training tools command: make install install-training args: - chdir=/home/{{ ansible_user }}/src/tesseract/simplemake - when: tessclone.changed + chdir: /home/{{ ansible_user }}/src/tesseract/simplemake notify: update ld.so diff --git a/roles/tesseractor/tasks/usefulbits.yml b/roles/tesseractor/tasks/usefulbits.yml new file mode 100644 index 0000000..a0e5f54 --- /dev/null +++ b/roles/tesseractor/tasks/usefulbits.yml @@ -0,0 +1,15 @@ +--- +- name: Install useful dependencies + apt: + state: present + name: + - git + +- name: Clone useful repositories + git: + repo: "{{ item.url }}" + dest: "/home/{{ ansible_user }}/{{ item.name }}" + become: no + with_items: + - { url: "https://git.rescribe.xyz/sh", name: "sh" } + - { url: "https://git.rescribe.xyz/ground-truth", name: "ground-truth" } |