--- # Installs tesseract - name: Install tesseract dependencies package: name={{ item }} state=present with_items: - gcc-c++ - make - libpng12-devel - libjpeg-turbo-devel - libtiff-devel - zlib-devel - name: Install tesseract training dependencies package: name={{ item }} state=present with_items: - libicu-devel - pango-devel - cairo-devel - name: Install extra tesseract development dependencies package: name={{ item }} state=present with_items: - git - name: Clone leptonica repository git: repo: https://github.com/nickjwhite/leptonica dest: /home/ec2-user/src/leptonica version: addinstall depth: 1 force: yes - name: Build leptonica command: make -f makefile.static SHARED=yes install args: chdir: /home/ec2-user/src/leptonica/src creates: /usr/local/lib/liblept.a - name: Clone tesseract repository git: repo: https://github.com/nickjwhite/tesseract dest: /home/ec2-user/src/tesseract version: amibuild depth: 1 - name: Build and install tesseract training tools make: chdir=/home/ec2-user/src/tesseract/simplemake target=install-training