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
33f78a8e
Commit
33f78a8e
authored
Mar 23, 2017
by
julian.gethmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update site.yml to include NFS
parent
b7318e43
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
60 additions
and
32 deletions
+60
-32
README.md
README.md
+3
-1
desktop.yml
desktop.yml
+7
-5
hosts
hosts
+1
-1
roles/common/tasks/hostname.yml
roles/common/tasks/hostname.yml
+6
-4
roles/latex/handlers/main.yml
roles/latex/handlers/main.yml
+4
-4
roles/latex/tasks/LaTeXfonts.yml
roles/latex/tasks/LaTeXfonts.yml
+10
-8
roles/latex/tasks/LateX.yml
roles/latex/tasks/LateX.yml
+5
-2
roles/latex/tasks/neo2.yml
roles/latex/tasks/neo2.yml
+22
-6
sites.yml
sites.yml
+2
-1
No files found.
README.md
View file @
33f78a8e
...
...
@@ -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 @
33f78a8e
-
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 @
33f78a8e
...
...
@@ -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 @
33f78a8e
---
-
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 @
33f78a8e
---
-
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 @
33f78a8e
...
...
@@ -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 @
33f78a8e
...
...
@@ -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 @
33f78a8e
---
-
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 @
33f78a8e
...
...
@@ -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
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