Commit 67243cae authored by julian.gethmann's avatar julian.gethmann

Update LaTeX formulas to be more stateless

* Still some statefull things that cause a "change" everytime called
* Still Font issue not solved
parent 0c79f7e0
......@@ -7,7 +7,7 @@
- name: update latex local
become: yes
environment:
environment:
PATH: "{{ lookup('env', 'PATH') }}"
command: mktexlsr "{{ texpath }}"
......@@ -26,3 +26,7 @@
environment:
PATH: "{{ lookup('env', 'PATH') }}"
command: texhash
- name: lock root user
become: yes
command: passwd -l root
---
- name: install Axel Bernhard's BibTeX-class for poster kurz.bst
become: yes
copy: src=kurz.bst dest=/usr/local/texlive/texmf-local/bibtex/bst/ backup=yes
copy:
src: kurz.bst
dest: /usr/local/texlive/texmf-local/bibtex/bst/
backup: yes
notify: hash latex
tags: kurzbst
......@@ -2,9 +2,13 @@
- name: rooting
action: shell passwd -u root
become: yes
changed_when: False
notify: lock root user
- name: install dependencies
dnf: name="{{item}}" state=latest
dnf:
name: "{{ item }}"
state: present
become: yes
with_items:
- texlive-a0poster
......@@ -24,7 +28,7 @@
- "{{ kit_tikz }}"
# ansible 2.0
# ansible 2.0
#- download current zip files
# unarchive: src="{{item}}" dest=~/ansible/roles/latex/files/ copy=no
# delegate_to: 127.0.0.1
......@@ -45,18 +49,27 @@
# tags: kit
- name: clone git repo
git: repo=https://git.scc.kit.edu/gethmann/KITlatex.git dest={{ texpath }}/KIT clone=yes key_file={{ lookup('file', '/home/gethmann/.ssh/id_rsa.pub') }}
git:
repo: https://git.scc.kit.edu/gethmann/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 }}
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:
# with_items:
# - Install-En.pdf
# - Install-De.pdf
# - Install-En.txt
......@@ -75,12 +88,16 @@
# - KIT-Vorlagen-Poster-LaTeX_06-12.zip
# - KIT-Vorlagen-Folien.zip
# - KIT-Vorlagen-Poster.zip
# tags:
# 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
lineinfile:
line: "\\RequirePackage{helvet}"
regexp: "\\RequirePackage{uarial}"
dest: "{{ texpath }}/tex/latex/KIT/{{item}}"
backup: yes
become: yes
with_items:
- beamerthemeKIT.sty
......@@ -90,12 +107,13 @@
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:
......@@ -108,20 +126,20 @@
# - dvips/config
# - doc/fonts
# become: yes
# notify:
# 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:
# with_items:
# - afm
# - tfm
# - type1
# - vf
# become: yes
# notify:
# notify:
# - update latex local
# - update fonts
# - update latex
......@@ -129,7 +147,7 @@
# - name: copy latex dir
# copy: src=latex dest={{ texpath }}/tex/latex/ua1
# become: yes
# notify:
# notify:
# - update latex local
# - update fonts
# - update latex
......
......@@ -8,15 +8,14 @@
- name: Download common MS fonts
get_url:
dest: /tmp/
url: "https://www.tug.org/fonts/getnonfreefonts/install-getnonfreefonts"
mode: 777
url: https://www.tug.org/fonts/getnonfreefonts/install-getnonfreefonts
mode: 0777
register: tex_fonts_dl_ok
when: gnff_available.changed
- name: Install getnonfreefonts
environment:
PATH: "{{ lookup('env', 'PATH') }}"
become: yes
command: /tmp/install-getnonfreefonts
when: gnff_available.changed
register: gnff_downloaded
......
---
- name: Install DPG-Tagungen document class
become: yes
copy: src=scdpg.cls dest={{ texpath }}/tex/latex/
copy:
src: scdpg.cls
dest: "{{ texpath }}/tex/latex/"
notify: hash latex
tags: latex
- name: Install JACoW-Tagungen document class
become: yes
copy: src=jacow.cls dest={{ texpath }}/tex/latex/
copy:
src: jacow.cls
dest: "{{ texpath }}/tex/latex/"
notify: hash latex
tags: latex
......@@ -36,7 +36,7 @@
become: yes
copy:
src: /tmp/uniinput.sty
dest: "{{ texpath }}/tex/latex/uniinput/"
dest: "{{ texpath }}/tex/latex/uniinput/uniinput.sty"
remote_src: yes
notify: update latex
......@@ -44,6 +44,6 @@
become: yes
copy:
src: /tmp/uniinput.pdf
dest: "{{ texpath }}/doc/latex/uniinput/"
dest: "{{ texpath }}/doc/latex/uniinput/uniinput.pdf"
remote_src: yes
notify: update latex
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment