--- - name: download uniinput get_url: url={{item}} dest=/tmp with_items: - "http://wiki.neo-layout.org/export/HEAD/latex/Standard-LaTeX/uniinput.dtx" - "http://wiki.neo-layout.org/export/HEAD/latex/Standard-LaTeX/uniinput.ins" - name: compile package docu command: pdflatex -interaction=nonstopmode uniinput.dtx chdir=/tmp ignore_errors: yes - name: compile package command: latex uniinput.ins chdir=/tmp creates=/tmp/uniinput.sty - name: create destination directories file: path=/usr/share/texlive/texmf-local/{{item}}/latex/uniinput state=directory mode=0755 with_items: - tex - doc become: yes - name: move style to LaTeX dir become: yes copy: src=/tmp/uniinput.sty dest=/usr/share/texlive/texmf-local/tex/latex/uniinput/ remote_src=yes notify: update latex - name: move docu to LaTeX dir become: yes copy: src=/tmp/uniinput.pdf dest=/usr/share/texlive/texmf-local/doc/latex/uniinput/ remote_src=yes notify: update latex