Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ansible
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
43
Issues
43
List
Boards
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
las-it-organisation
32-0-IT instructions and rules
ansible
Commits
79bbb452
Commit
79bbb452
authored
Jan 31, 2017
by
julian.gethmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add LaTeX role
parent
06a8664d
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
193 additions
and
8 deletions
+193
-8
group_vars/latex.yml
group_vars/latex.yml
+25
-0
roles/latex/handlers/main.yml
roles/latex/handlers/main.yml
+6
-0
roles/latex/tasks/KITLaTeX.yml
roles/latex/tasks/KITLaTeX.yml
+154
-0
roles/latex/tasks/dpg.yml
roles/latex/tasks/dpg.yml
+2
-2
roles/latex/tasks/main.yml
roles/latex/tasks/main.yml
+4
-4
roles/latex/tasks/neo2.yml
roles/latex/tasks/neo2.yml
+2
-2
No files found.
group_vars/latex.yml
View file @
79bbb452
texpath
:
/usr/share/texlive/texmf-local
kit_tikz
:
-
texlive-tikzpfeile
-
texlive-tikz-feynman
-
texlive-tikzmark
-
texlive-tikzscale
-
texlive-circuitikz
-
texlive-tikzsymbols
-
texlive-tikzinclude
-
texlive-tikzposter
-
texlive-tikz-palattice
-
texlive-aobs-tikz
-
texlive-tikz-3dplot
-
texlive-tikz-timing
-
texlive-hf-tikz
-
texlive-tikzscale
-
texlive-tikz-dependency
-
texlive-pgfgantt
-
texlive-venndiagram
-
texlive-flowchart
-
texlive-mycv
-
texlive-pgf-spectra
texlivepackages
:
-
texlive.x86_64
-
kile
...
...
@@ -10,6 +33,8 @@ texlivepackages:
-
texlive-units
-
texlive-mnsymbol
-
texlive-pgfgantt
-
texlive-pgf-umlcd
-
texlive-pgf-umlsd
-
texlive-prettyref
-
texlive-faktor
-
texlive-overpic
...
...
roles/latex/handlers/main.yml
View file @
79bbb452
...
...
@@ -5,6 +5,12 @@
PATH
:
"
{{
lookup('env',
'PATH')
}}"
command
:
mktexlsr
-
name
:
update latex local
become
:
yes
environment
:
PATH
:
"
{{
lookup('env',
'PATH')
}}"
command
:
mktexlsr "{{ texpath }}"
#- name: update latex
# become: yes
# command: shell mktexlsr /usr/local/texlive/texmf-local/
...
...
roles/latex/tasks/KITLaTeX.yml
0 → 100644
View file @
79bbb452
---
-
name
:
rooting
action
:
shell passwd -u root
become
:
yes
-
name
:
install dependencies
dnf
:
name="{{item}}" state=latest
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/gethmann/KITlatex.git dest={{ texpath }}/KIT clone=yes key_file={{ lookup('file', '/home/gethmann/.ssh/id_rsa.pub') }}
become
:
yes
-
name
:
copy files
copy
:
src={{ texpath }}/KIT/ dest={{ texpath }}
become
:
yes
notify
:
-
update latex
# - 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
# 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
roles/latex/tasks/dpg.yml
View file @
79bbb452
---
-
name
:
Install DPG-Tagungen document class
become
:
yes
copy
:
src=scdpg.cls dest=
/usr/local/texlive/texmf-local
/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=
/usr/share/texlive/texmf-local
/tex/latex/
copy
:
src=jacow.cls dest=
{{ texpath }}
/tex/latex/
notify
:
hash latex
tags
:
latex
roles/latex/tasks/main.yml
View file @
79bbb452
---
-
include
:
LateX.yml
tags
:
install
-
include
:
LaTeXfonts.yml
tags
:
fonts
#
- include: KITLaTeX.yml
#
tags: kit
#
- include: LaTeXfonts.yml
#
tags: fonts
-
include
:
KITLaTeX.yml
tags
:
kit
-
include
:
AxelsBST.yml
-
include
:
dpg.yml
-
include
:
neo2.yml
...
...
roles/latex/tasks/neo2.yml
View file @
79bbb452
...
...
@@ -36,7 +36,7 @@
become
:
yes
copy
:
src
:
/tmp/uniinput.sty
dest
:
"
/usr/share/texlive/texmf-local
/tex/latex/uniinput/"
dest
:
"
{{
texpath
}}
/tex/latex/uniinput/"
remote_src
:
yes
notify
:
update latex
...
...
@@ -44,6 +44,6 @@
become
:
yes
copy
:
src
:
/tmp/uniinput.pdf
dest
:
"
/usr/share/texlive/texmf-local
/doc/latex/uniinput/"
dest
:
"
{{
texpath
}}
/doc/latex/uniinput/"
remote_src
:
yes
notify
:
update latex
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment