--- - name: rooting action: shell passwd -u root become: yes changed_when: False notify: lock root user - name: install dependencies dnf: name: "{{ item }}" state: present become: yes with_items: - texlive-a0poster - texlive-beamer - texlive-bophook - texlive-boxedminipage - texlive-dinbrief - texlive-hyperref - texlive-lettrine - texlive-mathpazo - texlive-rcs # - texlive-refcount - texlive-sciposter - texlive-shadow - texlive-pgf - texlive-xcolor - "{{ kit_tikz }}" # ansible 2.0 #- download current zip files # unarchive: src="{{item}}" dest=~/ansible/roles/latex/files/ copy=no # delegate_to: 127.0.0.1 # with_items: # - "https://intranet.kit.edu/downloads/KIT-Vorlagen-Folien.zip" # - "https://intranet.kit.edu/downloads/KIT-Vorlagen-Poster.zip" # - name: Unzip KIT-Classes # become: yes # #shell: ls /tmp > /tmp/list # unarchive: src={{ item }}.zip dest=/usr/share/texlive/texmf-local/ # with_items: # - KITbase # - KITbeamer # - KITbrief # - KITposter # notify: update latex # tags: kit - name: clone git repo git: repo: https://git.scc.kit.edu/las/templates/KITlatex.git dest: "{{ texpath }}/KIT" clone: yes key_file: "{{ lookup('file', '/home/gethmann/.ssh/id_rsa.pub') }}" become: yes register: kit_git # This causes status change (because of the recursive copy I think) - name: copy files copy: src: "{{ texpath }}/KIT/" dest: "{{ texpath }}" become: yes notify: - update latex when: kit_git|changed # - name: cleanup # file: state=absent dest=/tmp/{{item}} # with_items: # - Install-En.pdf # - Install-De.pdf # - Install-En.txt # - Install-De.txt # - KITbase.zip # - KITbeamerXmpl.zip # - KITbeamer.zip # - KIT_Briefvorlagen_LaTeX.zip # - KITbriefXmpl.zip # - KITbrief.zip # - KITmanualD.pdf # - KITmanualE.pdf # - KITposterXmpl.zip # - KITposter.zip # - KIT-Vorlagen-Folien-LaTeX_06-12.zip # - KIT-Vorlagen-Poster-LaTeX_06-12.zip # - KIT-Vorlagen-Folien.zip # - KIT-Vorlagen-Poster.zip # tags: # - latex # - kit - name: hack Helvetica into KIT styles due to broken font installation lineinfile: line: "\\RequirePackage{helvet}" regexp: "\\RequirePackage{uarial}" dest: "{{ texpath }}/tex/latex/KIT/{{item}}" backup: yes become: yes with_items: - beamerthemeKIT.sty - KITbrief.cls - KITfax.cls - KITposter.cls tags: - latex - kit when: kit_git|changed # TODO # - name: download uarial # unarchive: src="ftp://ftp.dante.de/tex-archive/fonts/urw/arial.zip" dest={{ texpath }}/KIT/arial creates={{ texpath }}/KIT/arial # become: yes # # - name: create missing directories # file: state=directory path={{ texpath }}/{{ item }} # with_items: # - fonts/afm/urw # - fonts/tfm/urw # - fonts/type1/urw # - fonts/vf/urw # - fonts/map/dvips/ua1 # - fonts/map/vtex # - dvips/config # - doc/fonts # become: yes # notify: # - update latex local # - update fonts # - update latex # # - name: move afm, tfm, type1, vf dirs # copy: src={{ item }} dest={{ texpath }}/fonts/{{ item }}/arial # with_items: # - afm # - tfm # - type1 # - vf # become: yes # notify: # - update latex local # - update fonts # - update latex # # - name: copy latex dir # copy: src=latex dest={{ texpath }}/tex/latex/ua1 # become: yes # notify: # - update latex local # - update fonts # - update latex # # - name: copy map dir # copy: src={{ item.from }} dest={{ texpath }}/{{ item.to }} # with_items: # - {from: "map/ua1.map", to: "dvips/config"} # - {from: "map/ua1.map", to: "fonts/map/dvips/ua1"} # - {from: "map/ua1.ali", to: "fonts/map/vtex"} # become: yes # notify: # - update latex local # - update fonts # - update latex # # - name: copy docu 1/2 # copy: src={{ item }} dest={{ texpath }}/doc/fonts/urw # with_items: # - doc # - README # become: yes