From 28549fb8233b36a2b1c30f66736e55e48ec78f3d Mon Sep 17 00:00:00 2001 From: Nick White Date: Sun, 6 Jan 2019 01:30:20 +0000 Subject: Add scantailor role --- roles/scantailor/tasks/main.yml | 2 ++ roles/scantailor/tasks/scantailor.yml | 41 +++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 roles/scantailor/tasks/main.yml create mode 100644 roles/scantailor/tasks/scantailor.yml (limited to 'roles') diff --git a/roles/scantailor/tasks/main.yml b/roles/scantailor/tasks/main.yml new file mode 100644 index 0000000..788df22 --- /dev/null +++ b/roles/scantailor/tasks/main.yml @@ -0,0 +1,2 @@ +--- +- include: scantailor.yml diff --git a/roles/scantailor/tasks/scantailor.yml b/roles/scantailor/tasks/scantailor.yml new file mode 100644 index 0000000..8a8820e --- /dev/null +++ b/roles/scantailor/tasks/scantailor.yml @@ -0,0 +1,41 @@ +--- +# 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 -- cgit v1.2.1-24-ge1ad