...
 
Commits (3)
...@@ -51,7 +51,6 @@ requst by adding the software name to the list of `extra_software` in the ...@@ -51,7 +51,6 @@ requst by adding the software name to the list of `extra_software` in the
* admin.yml: tools for administrators * admin.yml: tools for administrators
* latex.yml: basic LaTeX installation (Arial not yet) ^1 * latex.yml: basic LaTeX installation (Arial not yet) ^1
* kdev.yml: KDevelope (with Python PlugIn) ^1 * kdev.yml: KDevelope (with Python PlugIn) ^1
* jabref.yml: Cross platform BibTeX bibilography software [JabRef](http://www.jabref.org/)
* pycharm.yml: Cross platform Python IDE: [PyCharm](https://www.jetbrains.com/pycharm/) IDE * pycharm.yml: Cross platform Python IDE: [PyCharm](https://www.jetbrains.com/pycharm/) IDE
* chrome.yml: Google Chrome for Fedora (for Adobe Connect usage) * chrome.yml: Google Chrome for Fedora (for Adobe Connect usage)
* elegant.yml: elegant (no Pelegant, yet) * elegant.yml: elegant (no Pelegant, yet)
...@@ -75,7 +74,7 @@ For developement and testing you should use development branches like `dev-latex ...@@ -75,7 +74,7 @@ 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.
If you just want to install one or many packages you can use `jabref.yml` as a basis. If you just want to install one or many packages you can use `kdev.yml` as a basis or if it is not interesting for others you might want to add it to your host file instead.
Be aware that the development branches here are not save and the owner might force push to them! Be aware that the development branches here are not save and the owner might force push to them!
......
...@@ -2,9 +2,10 @@ ...@@ -2,9 +2,10 @@
inventory=hosts inventory=hosts
pipelining = True pipelining = True
ssh_args = -o ControlMaster=auto -o ControlPersist=60s ssh_args = -o ControlMaster=auto -o ControlPersist=60s
remote_user=gethmann remote_user=root
roles_path=roles roles_path=roles
become=False become=False
become_user="root" become_user="root"
become_ask_pass=True become_ask_pass=True
become_method="sudo" become_method="sudo"
ansible_python_interpreter="/usr/bin/env python3"
...@@ -51,6 +51,8 @@ las-gethmann.las.kit.edu ...@@ -51,6 +51,8 @@ las-gethmann.las.kit.edu
[kdev] # KDevelope [kdev] # KDevelope
[jabref] [jabref]
[zotero]
las113.las.kit.edu las113.las.kit.edu
las117.las.kit.edu las117.las.kit.edu
las-gethmann.las.kit.edu las-gethmann.las.kit.edu
......
...@@ -5,3 +5,8 @@ ...@@ -5,3 +5,8 @@
dnf: dnf:
name: jabref name: jabref
state: present state: present
when: (ansible_distribution == "Fedora" and ansible_distribution_major_version <= 28)
- name: UNSUPPORTED
fail:
msg: Jabref is no longer maintained by Fedora! Use zotero instead.
...@@ -32,12 +32,13 @@ ...@@ -32,12 +32,13 @@
state: directory state: directory
register: tmpdir register: tmpdir
# This should be changed when the Arial task is working
- name: clone git repo - name: clone git repo
git: git:
repo: https://git.scc.kit.edu/las/templates/KITlatex.git repo: "https://git.scc.kit.edu/las-software/15-4-Utilities/KITlatex.git"
dest: "{{ tmpdir.path }}" dest: "{{ tmpdir.path }}"
clone: yes clone: yes
version: HEAD version: helvetica
update: yes update: yes
become: yes become: yes
register: kit_git register: kit_git
...@@ -50,14 +51,12 @@ ...@@ -50,14 +51,12 @@
- name: copy tex files - name: copy tex files
become: yes become: yes
copy: synchronize:
src: "{{ item }}" src: "{{ tmpdir.path }}/tex/latex/KIT"
dest: "{{ texpath }}/tex/latex/KIT/" dest: "{{ texpath }}/tex/latex/KIT"
remote_src: yes
notify: notify:
- update latex - update latex
with_fileglob: delegate_to: "{{ inventory_hostname }}"
- "{{ tmpdir.path }}/tex/latex/KIT/*"
- name: create doc dir - name: create doc dir
become: yes become: yes
...@@ -67,14 +66,11 @@ ...@@ -67,14 +66,11 @@
- name: copy pdf files - name: copy pdf files
become: yes become: yes
copy: synchronize:
src: "{{ item }}" src: "{{ tmpdir.path }}/doc/latex/KIT"
dest: "{{ texpath }}/doc/latex/KIT/" dest: "{{ texpath }}/doc/latex/KIT"
remote_src: yes
notify: notify:
- update latex - update latex
with_fileglob:
- "{{ tmpdir.path }}/doc/latex/KIT/*"
# This should be deleted when the Arial task is working # This should be deleted when the Arial task is working
- name: hack Helvetica into KIT styles due to broken font installation - name: hack Helvetica into KIT styles due to broken font installation
......
---
- name: unarchive zotero
become: yes
unarchive:
src: "{{ zotero_file }}"
dest: /usr/local/Zotero
- name: link zotero
become: yes
file:
src: /usr/local/bin/zotero
dest: /usr/local/Zotero/zotero
zotero_file: Zotero-5.0.59_linux-x86_64.tar.bz2
--- ---
- vars:
ansible_python_interpreter: "/usr/bin/env python3"
when: (ansible_distribution == 'Fedora' and ansible_distribution_version >= 28)
- import_playbook: common.yml - import_playbook: common.yml
- import_playbook: clients.yml - import_playbook: clients.yml
tags: client tags: client
...@@ -23,6 +19,8 @@ ...@@ -23,6 +19,8 @@
- import_playbook: graphics.yml - import_playbook: graphics.yml
- import_playbook: latex.yml - import_playbook: latex.yml
tags: latex tags: latex
- import_playbook: zotero.yml
tags: latex
- import_playbook: kdev.yml - import_playbook: kdev.yml
tags: kdev tags: kdev
- import_playbook: pycharm.yml - import_playbook: pycharm.yml
...@@ -33,15 +31,16 @@ ...@@ -33,15 +31,16 @@
tags: [python, notebook] tags: [python, notebook]
- import_playbook: inovesa.yml - import_playbook: inovesa.yml
tags: inovesa tags: inovesa
- import_playbook: jabref.yml
tags: jabref
- import_playbook: ripgrep.yml - import_playbook: ripgrep.yml
tags: ripgrep tags: ripgrep
- import_playbook: epics.yml - import_playbook: epics.yml
tags: epics tags: epics
- name: Example playbook sending mail to root - name: Example playbook sending mail to root
mail: hosts: all
subject: System {{ ansible_hostname }} has been successfully provisioned. tasks:
to: Julian Gethmann <gethmann@kit.edu> - name: send mail to me
delegate_to: localhost mail:
subject: System {{ ansible_hostname }} has been successfully provisioned.
to: Julian Gethmann <gethmann@kit.edu>
delegate_to: localhost
- hosts: zotero
roles:
- zotero