KITLaTeX.yml 1.81 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

- name: clone git repo
36
  git:
37
    repo: https://git.scc.kit.edu/las/templates/KITlatex.git
38
    dest: "{{ tmpdir.path }}"
39
    clone: yes
40
41
    version: HEAD
    update: yes
julian.gethmann's avatar
julian.gethmann committed
42
  become: yes
43
  register: kit_git
julian.gethmann's avatar
julian.gethmann committed
44

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

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

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

68
69
70
71
72
73
74
75
76
- name: copy pdf files
  become: yes
  copy:
    src: "{{ item }}"
    dest: "{{ texpath }}/doc/latex/KIT/"
  remote_src: yes
  notify:
  - update latex
  with_fileglob:
julian.gethmann's avatar
julian.gethmann committed
77
    - "{{ tmpdir.path }}/doc/latex/KIT/*"
78
79

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