Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
las-it-organisation
32-0-IT instructions and rules
ansible
Commits
d610322b
Commit
d610322b
authored
Mar 23, 2017
by
julian.gethmann
Browse files
Update site.yml to include NFS
parent
050f20ce
Changes
9
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
d610322b
...
...
@@ -28,6 +28,9 @@ Open an issue in the GitLab issue tracker with the label: softwarerequest
* python.yml: basic python_stack for scientific Python usage (including fitting)
* ipynb.yml: IPython/Jupyter notebook
* MAD-8: MAD 8 inofficial build for Fedora
* nfs.yml:
* nfs-server: export /las-archiv1 to our network
* lasarchiv: client side mount las126/las-archiv1
# Develope new roles, extend or modify existing ones and update roles for new software
...
...
@@ -39,7 +42,6 @@ For developement and testing you should use development branches like `dev-latex
You can check the syntax of the files by running `
ansible-playbook --check-syntax filename.yml
`
(or by using the pre-commit-hook from the Snipplets.
## TODO
*
nfs-server, lasarchiv1
*
epics
*
elegant (blas: gescheit die key-verwaltung lösen)
*
dhcpd
desktop.yml
View file @
d610322b
-
hosts
:
desktop
tasks
:
-
name
:
install desktop software
dnf
:
name={{item}} state=installed
become
:
yes
when
:
ansible_distribution == 'Fedora'
with_items
:
-
"
{{desktop_software}}"
dnf
:
name
:
"
{{
item
}}"
state
:
installed
become
:
yes
when
:
ansible_distribution == 'Fedora'
with_items
:
-
"
{{
desktop_software
}}"
hosts
View file @
d610322b
...
...
@@ -5,7 +5,7 @@ las113.las.kit.edu
las93.las.kit.edu
las-gethmann.las.kit.edu
[nfs-
hosts
]
[nfs-
server
]
las126.las.kit.edu
[opera]
...
...
roles/common/tasks/hostname.yml
View file @
d610322b
---
-
name
:
set hostname
hostname
:
"
name=las{{
ip_suffix
}}.las.kit.edu"
become
:
yes
-
name
:
install needed network manager libs
dnf
:
name
:
'
{{
item
}}'
...
...
@@ -26,3 +22,9 @@
# # - 8.8.8.8
# state: present
# type: ethernet
-
name
:
set hostname
hostname
:
name
:
"
las{{
ip_suffix
}}.las.kit.edu"
become
:
yes
roles/latex/handlers/main.yml
View file @
d610322b
---
-
name
:
update latex
become
:
yes
environment
:
environment
:
PATH
:
"
{{
lookup('env',
'PATH')
}}"
command
:
mktexlsr
command
:
mktexlsr
#- name: update latex
# become: yes
...
...
@@ -11,8 +11,8 @@
#
-
name
:
update tlmgr
become
:
yes
action
:
shell
tlmgr update --self --all
environment
:
action
:
command
tlmgr update --self --all
environment
:
PATH
:
"
{{
lookup('env',
'PATH')
}}"
-
name
:
hash latex
...
...
roles/latex/tasks/LaTeXfonts.yml
View file @
d610322b
...
...
@@ -5,24 +5,26 @@
register
:
tex_fonts_dl_ok
-
name
:
Install getnonfreefonts
environment
:
environment
:
PATH
:
"
{{
lookup('env',
'PATH')
}}"
become
:
yes
shell
:
/tmp/install-getnonfreefonts
command
:
/tmp/install-getnonfreefonts
-
name
:
Install all TeX fonts
environment
:
environment
:
PATH
:
"
{{
lookup('env',
'PATH')
}}"
become
:
yes
shell
:
getnonfreefonts-sys -a
command
:
getnonfreefonts-sys -a
-
name
:
Register all TeX fonts
environment
:
environment
:
PATH
:
"
{{
lookup('env',
'PATH')
}}"
become
:
yes
shell
:
getnonfreefonts-sys -r
command
:
getnonfreefonts-sys -r
-
name
:
cleanup
file
:
state=absent dest=/tmp/{{item}}
with_items
:
file
:
state
:
absent
dest
:
"
/tmp/{{
item
}}"
with_items
:
-
install-getnonfreefonts
roles/latex/tasks/LateX.yml
View file @
d610322b
...
...
@@ -8,16 +8,19 @@
tags
:
latex
-
name
:
Install LaTeX subpackages
dnf
:
name={{item}} state=latest
dnf
:
name
:
"
{{
item
}}"
state
:
latest
become
:
yes
with_items
:
"
{{
texlivepackages
}}"
when
:
ansible_distribution == "Fedora"
# - name: profile.d (for TL {{tlyear}})
# copy: src=latex.sh dest=/etc/profile.d/latex.sh owner=root group=root mode=744
# become: yes
# tags: latex
# register: latexsh
#
#
# - name: run latex.sh (for TL {{tlyear}})
# action: shell bash /etc/profile.d/latex.sh
# become: yes
...
...
roles/latex/tasks/neo2.yml
View file @
d610322b
---
-
name
:
download uniinput
get_url
:
url={{item}} dest=/tmp
get_url
:
url
:
"
{{
item
}}"
dest
:
/tmp
with_items
:
-
"
http://wiki.neo-layout.org/export/HEAD/latex/Standard-LaTeX/uniinput.dtx"
-
"
http://wiki.neo-layout.org/export/HEAD/latex/Standard-LaTeX/uniinput.ins"
-
name
:
compile package docu
command
:
pdflatex -interaction=nonstopmode uniinput.dtx chdir=/tmp
command
:
pdflatex -interaction=nonstopmode uniinput.dtx
args
:
chdir
:
/tmp
ignore_errors
:
yes
-
name
:
compile package
command
:
latex uniinput.ins chdir=/tmp creates=/tmp/uniinput.sty
command
:
latex uniinput.ins
args
:
chdir
:
/tmp
creates
:
/tmp/uniinput.sty
-
name
:
create destination directories
file
:
path=/usr/share/texlive/texmf-local/{{item}}/latex/uniinput state=directory mode=0755
file
:
path
:
"
/usr/share/texlive/texmf-local/{{
item
}}/latex/uniinput"
state
:
directory
mode
:
0755
with_items
:
-
tex
-
doc
...
...
@@ -21,10 +31,16 @@
-
name
:
move style to LaTeX dir
become
:
yes
copy
:
src=/tmp/uniinput.sty dest=/usr/share/texlive/texmf-local/tex/latex/uniinput/ remote_src=yes
copy
:
src
:
/tmp/uniinput.sty
dest
:
"
/usr/share/texlive/texmf-local/tex/latex/uniinput/"
remote_src
:
yes
notify
:
update latex
-
name
:
move docu to LaTeX dir
become
:
yes
copy
:
src=/tmp/uniinput.pdf dest=/usr/share/texlive/texmf-local/doc/latex/uniinput/ remote_src=yes
copy
:
src
:
/tmp/uniinput.pdf
dest
:
"
/usr/share/texlive/texmf-local/doc/latex/uniinput/"
remote_src
:
yes
notify
:
update latex
sites.yml
View file @
d610322b
...
...
@@ -8,7 +8,8 @@
tags
:
admin
#- include: scipy.yml
#- include: server.yml
#- include: nfs.yml
-
include
:
nfs.yml
tags
:
nfs
#- include: update.yml
-
include
:
desktop.yml
tags
:
admin
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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