Commit d2e0b3c2 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 ef83b5ec
...@@ -26,3 +26,7 @@ ...@@ -26,3 +26,7 @@
environment: environment:
PATH: "{{ lookup('env', 'PATH') }}" PATH: "{{ lookup('env', 'PATH') }}"
command: texhash command: texhash
- name: lock root user
become: yes
command: passwd -l root
--- ---
- name: install Axel Bernhard's BibTeX-class for poster kurz.bst - name: install Axel Bernhard's BibTeX-class for poster kurz.bst
become: yes 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 notify: hash latex
tags: kurzbst tags: kurzbst
...@@ -2,9 +2,13 @@ ...@@ -2,9 +2,13 @@
- name: rooting - name: rooting
action: shell passwd -u root action: shell passwd -u root
become: yes become: yes
changed_when: False
notify: lock root user
- name: install dependencies - name: install dependencies
dnf: name="{{item}}" state=latest dnf:
name: "{{ item }}"
state: present
become: yes become: yes
with_items: with_items:
- texlive-a0poster - texlive-a0poster
...@@ -45,14 +49,23 @@ ...@@ -45,14 +49,23 @@
# tags: kit # tags: kit
- name: clone git repo - 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 become: yes
register: kit_git
# This causes status change (because of the recursive copy I think)
- name: copy files - name: copy files
copy: src={{ texpath }}/KIT/ dest={{ texpath }} copy:
src: "{{ texpath }}/KIT/"
dest: "{{ texpath }}"
become: yes become: yes
notify: notify:
- update latex - update latex
when: kit_git|changed
# - name: cleanup # - name: cleanup
# file: state=absent dest=/tmp/{{item}} # file: state=absent dest=/tmp/{{item}}
...@@ -80,7 +93,11 @@ ...@@ -80,7 +93,11 @@
# - kit # - kit
- name: hack Helvetica into KIT styles due to broken font installation - 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 become: yes
with_items: with_items:
- beamerthemeKIT.sty - beamerthemeKIT.sty
...@@ -90,6 +107,7 @@ ...@@ -90,6 +107,7 @@
tags: tags:
- latex - latex
- kit - kit
when: kit_git|changed
# TODO # TODO
# - name: download uarial # - name: download uarial
......
...@@ -8,15 +8,14 @@ ...@@ -8,15 +8,14 @@
- name: Download common MS fonts - name: Download common MS fonts
get_url: get_url:
dest: /tmp/ dest: /tmp/
url: "https://www.tug.org/fonts/getnonfreefonts/install-getnonfreefonts" url: https://www.tug.org/fonts/getnonfreefonts/install-getnonfreefonts
mode: 777 mode: 0777
register: tex_fonts_dl_ok register: tex_fonts_dl_ok
when: gnff_available.changed when: gnff_available.changed
- name: Install getnonfreefonts - name: Install getnonfreefonts
environment: environment:
PATH: "{{ lookup('env', 'PATH') }}" PATH: "{{ lookup('env', 'PATH') }}"
become: yes
command: /tmp/install-getnonfreefonts command: /tmp/install-getnonfreefonts
when: gnff_available.changed when: gnff_available.changed
register: gnff_downloaded register: gnff_downloaded
......
--- ---
- name: Install DPG-Tagungen document class - name: Install DPG-Tagungen document class
become: yes become: yes
copy: src=scdpg.cls dest={{ texpath }}/tex/latex/ copy:
src: scdpg.cls
dest: "{{ texpath }}/tex/latex/"
notify: hash latex notify: hash latex
tags: latex tags: latex
- name: Install JACoW-Tagungen document class - name: Install JACoW-Tagungen document class
become: yes become: yes
copy: src=jacow.cls dest={{ texpath }}/tex/latex/ copy:
src: jacow.cls
dest: "{{ texpath }}/tex/latex/"
notify: hash latex notify: hash latex
tags: latex tags: latex
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
become: yes become: yes
copy: copy:
src: /tmp/uniinput.sty src: /tmp/uniinput.sty
dest: "{{ texpath }}/tex/latex/uniinput/" dest: "{{ texpath }}/tex/latex/uniinput/uniinput.sty"
remote_src: yes remote_src: yes
notify: update latex notify: update latex
...@@ -44,6 +44,6 @@ ...@@ -44,6 +44,6 @@
become: yes become: yes
copy: copy:
src: /tmp/uniinput.pdf src: /tmp/uniinput.pdf
dest: "{{ texpath }}/doc/latex/uniinput/" dest: "{{ texpath }}/doc/latex/uniinput/uniinput.pdf"
remote_src: yes remote_src: yes
notify: update latex 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