Commit 33f78a8e authored by julian.gethmann's avatar julian.gethmann

Update site.yml to include NFS

parent b7318e43
......@@ -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
- 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 }}"
......@@ -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]
......
---
- 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
---
- 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
......
......@@ -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
......@@ -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
......
---
- 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
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment