Commit d610322b authored by julian.gethmann's avatar julian.gethmann

Update site.yml to include NFS

parent 050f20ce
...@@ -28,6 +28,9 @@ Open an issue in the GitLab issue tracker with the label: softwarerequest ...@@ -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) * python.yml: basic python_stack for scientific Python usage (including fitting)
* ipynb.yml: IPython/Jupyter notebook * ipynb.yml: IPython/Jupyter notebook
* MAD-8: MAD 8 inofficial build for Fedora * 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 # 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 ...@@ -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. 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 ## TODO
* nfs-server, lasarchiv1
* epics * epics
* elegant (blas: gescheit die key-verwaltung lösen) * elegant (blas: gescheit die key-verwaltung lösen)
* dhcpd * dhcpd
- hosts: desktop - hosts: desktop
tasks: tasks:
- name: install desktop software - name: install desktop software
dnf: name={{item}} state=installed dnf:
name: "{{ item }}"
state: installed
become: yes become: yes
when: ansible_distribution == 'Fedora' when: ansible_distribution == 'Fedora'
with_items: with_items:
- "{{desktop_software}}" - "{{ desktop_software }}"
...@@ -5,7 +5,7 @@ las113.las.kit.edu ...@@ -5,7 +5,7 @@ las113.las.kit.edu
las93.las.kit.edu las93.las.kit.edu
las-gethmann.las.kit.edu las-gethmann.las.kit.edu
[nfs-hosts] [nfs-server]
las126.las.kit.edu las126.las.kit.edu
[opera] [opera]
......
--- ---
- name: set hostname
hostname: "name=las{{ ip_suffix }}.las.kit.edu"
become: yes
- name: install needed network manager libs - name: install needed network manager libs
dnf: dnf:
name: '{{ item }}' name: '{{ item }}'
...@@ -26,3 +22,9 @@ ...@@ -26,3 +22,9 @@
# # - 8.8.8.8 # # - 8.8.8.8
# state: present # state: present
# type: ethernet # type: ethernet
- name: set hostname
hostname:
name: "las{{ ip_suffix }}.las.kit.edu"
become: yes
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
# #
- name: update tlmgr - name: update tlmgr
become: yes become: yes
action: shell tlmgr update --self --all action: command tlmgr update --self --all
environment: environment:
PATH: "{{ lookup('env', 'PATH') }}" PATH: "{{ lookup('env', 'PATH') }}"
......
...@@ -8,21 +8,23 @@ ...@@ -8,21 +8,23 @@
environment: environment:
PATH: "{{ lookup('env', 'PATH') }}" PATH: "{{ lookup('env', 'PATH') }}"
become: yes become: yes
shell: /tmp/install-getnonfreefonts command: /tmp/install-getnonfreefonts
- name: Install all TeX fonts - name: Install all TeX fonts
environment: environment:
PATH: "{{ lookup('env', 'PATH') }}" PATH: "{{ lookup('env', 'PATH') }}"
become: yes become: yes
shell: getnonfreefonts-sys -a command: getnonfreefonts-sys -a
- name: Register all TeX fonts - name: Register all TeX fonts
environment: environment:
PATH: "{{ lookup('env', 'PATH') }}" PATH: "{{ lookup('env', 'PATH') }}"
become: yes become: yes
shell: getnonfreefonts-sys -r command: getnonfreefonts-sys -r
- name: cleanup - name: cleanup
file: state=absent dest=/tmp/{{item}} file:
state: absent
dest: "/tmp/{{ item }}"
with_items: with_items:
- install-getnonfreefonts - install-getnonfreefonts
...@@ -8,9 +8,12 @@ ...@@ -8,9 +8,12 @@
tags: latex tags: latex
- name: Install LaTeX subpackages - name: Install LaTeX subpackages
dnf: name={{item}} state=latest dnf:
name: "{{ item }}"
state: latest
become: yes become: yes
with_items: "{{ texlivepackages }}" with_items: "{{ texlivepackages }}"
when: ansible_distribution == "Fedora"
# - name: profile.d (for TL {{tlyear}}) # - name: profile.d (for TL {{tlyear}})
# copy: src=latex.sh dest=/etc/profile.d/latex.sh owner=root group=root mode=744 # copy: src=latex.sh dest=/etc/profile.d/latex.sh owner=root group=root mode=744
......
--- ---
- name: download uniinput - name: download uniinput
get_url: url={{item}} dest=/tmp get_url:
url: "{{ item }}"
dest: /tmp
with_items: 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.dtx"
- "http://wiki.neo-layout.org/export/HEAD/latex/Standard-LaTeX/uniinput.ins" - "http://wiki.neo-layout.org/export/HEAD/latex/Standard-LaTeX/uniinput.ins"
- name: compile package docu - name: compile package docu
command: pdflatex -interaction=nonstopmode uniinput.dtx chdir=/tmp command: pdflatex -interaction=nonstopmode uniinput.dtx
args:
chdir: /tmp
ignore_errors: yes ignore_errors: yes
- name: compile package - 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 - 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: with_items:
- tex - tex
- doc - doc
...@@ -21,10 +31,16 @@ ...@@ -21,10 +31,16 @@
- name: move style to LaTeX dir - name: move style to LaTeX dir
become: yes 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 notify: update latex
- name: move docu to LaTeX dir - name: move docu to LaTeX dir
become: yes 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 notify: update latex
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
tags: admin tags: admin
#- include: scipy.yml #- include: scipy.yml
#- include: server.yml #- include: server.yml
#- include: nfs.yml - include: nfs.yml
tags: nfs
#- include: update.yml #- include: update.yml
- include: desktop.yml - include: desktop.yml
tags: admin 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