--- # Installs leptonica - name: Install leptonica dependencies apt: state: present name: - g++ - git - libjpeg62-turbo-dev - libpng-dev - libtiff-dev - make - zlib1g-dev - name: Clone leptonica repository git: repo: https://github.com/nickjwhite/leptonica dest: /home/{{ ansible_user }}/src/leptonica version: addinstall depth: 1 become: no - name: Build leptonica command: make -f makefile.static {{ item }} args: chdir: /home/{{ ansible_user }}/src/leptonica/src with_items: - nodebug - SHARED=yes shared become: no - name: Install leptonica command: make -f makefile.static install args: chdir: /home/{{ ansible_user }}/src/leptonica/src notify: update ld.so