Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ansible
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
36
Issues
36
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
las-it-organisation
32-0-IT instructions and rules
ansible
Commits
85fbb495
Commit
85fbb495
authored
Jan 31, 2017
by
julian.gethmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP: Add LaTeX role
parent
0396536c
Changes
6
Hide 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 @
85fbb495
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
:
texlivepackages
:
-
texlive.x86_64
-
texlive.x86_64
-
kile
-
kile
...
@@ -10,6 +33,8 @@ texlivepackages:
...
@@ -10,6 +33,8 @@ texlivepackages:
-
texlive-units
-
texlive-units
-
texlive-mnsymbol
-
texlive-mnsymbol
-
texlive-pgfgantt
-
texlive-pgfgantt
-
texlive-pgf-umlcd
-
texlive-pgf-umlsd
-
texlive-prettyref
-
texlive-prettyref
-
texlive-faktor
-
texlive-faktor
-
texlive-overpic
-
texlive-overpic
...
...
roles/latex/handlers/main.yml
View file @
85fbb495
...
@@ -5,6 +5,12 @@
...
@@ -5,6 +5,12 @@
PATH
:
"
{{
lookup('env',
'PATH')
}}"
PATH
:
"
{{
lookup('env',
'PATH')
}}"
command
:
mktexlsr
command
:
mktexlsr
-
name
:
update latex local
become
:
yes
environment
:
PATH
:
"
{{
lookup('env',
'PATH')
}}"
command
:
mktexlsr "{{ texpath }}"
#- name: update latex
#- name: update latex
# become: yes
# become: yes
# command: shell mktexlsr /usr/local/texlive/texmf-local/
# command: shell mktexlsr /usr/local/texlive/texmf-local/
...
...
roles/latex/tasks/KITLaTeX.yml
0 → 100644
View file @
85fbb495
---
-
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 @
85fbb495
---
---
-
name
:
Install DPG-Tagungen document class
-
name
:
Install DPG-Tagungen document class
become
:
yes
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
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=
/usr/share/texlive/texmf-local
/tex/latex/
copy
:
src=jacow.cls dest=
{{ texpath }}
/tex/latex/
notify
:
hash latex
notify
:
hash latex
tags
:
latex
tags
:
latex
roles/latex/tasks/main.yml
View file @
85fbb495
---
---
-
include
:
LateX.yml
-
include
:
LateX.yml
tags
:
install
tags
:
install
-
include
:
LaTeXfonts.yml
#
- include: LaTeXfonts.yml
tags
:
fonts
#
tags: fonts
#
- include: KITLaTeX.yml
-
include
:
KITLaTeX.yml
#
tags: kit
tags
:
kit
-
include
:
AxelsBST.yml
-
include
:
AxelsBST.yml
-
include
:
dpg.yml
-
include
:
dpg.yml
-
include
:
neo2.yml
-
include
:
neo2.yml
...
...
roles/latex/tasks/neo2.yml
View file @
85fbb495
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
become
:
yes
become
:
yes
copy
:
copy
:
src
:
/tmp/uniinput.sty
src
:
/tmp/uniinput.sty
dest
:
"
/usr/share/texlive/texmf-local
/tex/latex/uniinput/"
dest
:
"
{{
texpath
}}
/tex/latex/uniinput/"
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
:
"
/usr/share/texlive/texmf-local
/doc/latex/uniinput/"
dest
:
"
{{
texpath
}}
/doc/latex/uniinput/"
remote_src
:
yes
remote_src
:
yes
notify
:
update latex
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