KITLaTeX.yml 1.83 KB
Newer Older
julian.gethmann's avatar
julian.gethmann committed
1 2 3 4
---
- name: rooting
  action: shell passwd -u root
  become: yes
5 6
  changed_when: False
  notify: lock root user
julian.gethmann's avatar
julian.gethmann committed
7 8

- name: install dependencies
9 10 11
  dnf:
    name: "{{ item }}"
    state: present
julian.gethmann's avatar
julian.gethmann committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
  become: yes
  with_items:
  - texlive-a0poster
  - texlive-beamer
  - texlive-bophook
  - texlive-boxedminipage
  - texlive-dinbrief
  - texlive-hyperref
  - texlive-lettrine
  - texlive-mathpazo
  - texlive-rcs
  - texlive-sciposter
  - texlive-shadow
  - texlive-pgf
  - texlive-xcolor
  - "{{ kit_tikz }}"

29 30 31 32 33
- name: make tmpdir
  tempfile:
    prefix: ansi
    state: directory
  register: tmpdir
julian.gethmann's avatar
julian.gethmann committed
34

35
# This should be changed when the Arial task is working
julian.gethmann's avatar
julian.gethmann committed
36
- name: clone git repo
37
  git:
38
    repo: "https://git.scc.kit.edu/las-software/15-4-Utilities/KITlatex.git"
39
    dest: "{{ tmpdir.path }}"
40
    clone: yes
41
    version: helvetica
42
    update: yes
julian.gethmann's avatar
julian.gethmann committed
43
  become: yes
44
  register: kit_git
julian.gethmann's avatar
julian.gethmann committed
45

46 47 48 49 50 51 52
- name: create tex dir
  become: yes
  file:
    path: "{{ texpath }}/tex/latex/KIT"
    state: directory

- name: copy tex files
53
  become: yes
54 55 56
  synchronize:
    src: "{{ tmpdir.path }}/tex/latex/KIT"
    dest: "{{ texpath }}/tex/latex/KIT"
julian.gethmann's avatar
julian.gethmann committed
57 58
  notify:
  - update latex
59
  delegate_to: "{{ inventory_hostname }}"
julian.gethmann's avatar
julian.gethmann committed
60

61 62 63 64 65
- name: create doc dir
  become: yes
  file:
    path: "{{ texpath }}/doc/latex/KIT"
    state: directory
julian.gethmann's avatar
julian.gethmann committed
66

67 68
- name: copy pdf files
  become: yes
69 70 71
  synchronize:
    src: "{{ tmpdir.path }}/doc/latex/KIT"
    dest: "{{ texpath }}/doc/latex/KIT"
72 73 74 75
  notify:
  - update latex

# This should be deleted when the Arial task is working
julian.gethmann's avatar
julian.gethmann committed
76
- name: hack Helvetica into KIT styles due to broken font installation
77 78
  lineinfile:
    line: "\\RequirePackage{helvet}"
79 80
    regexp: "\\RequirePackage{(uarial|helvet)}"
    dest: "{{ texpath }}/tex/latex/KIT/{{ item }}"
81
    backup: yes
julian.gethmann's avatar
julian.gethmann committed
82 83 84 85 86 87 88 89 90
  become: yes
  with_items:
  - beamerthemeKIT.sty
  - KITbrief.cls
  - KITfax.cls
  - KITposter.cls
  tags:
  - latex
  - kit