46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
---
|
|
- hosts: '{{ variable_host | default("lab15_standard") }}'
|
|
gather_facts: no
|
|
connection: local
|
|
become: yes
|
|
tasks:
|
|
- name: remove snap eclipse
|
|
shell: snap remove eclipse
|
|
|
|
- name: download eclipse source
|
|
shell: wget https://rhlx01.hs-esslingen.de/pub/Mirrors/eclipse/technology/epp/downloads/release/2021-09/R/eclipse-java-2021-09-R-linux-gtk-x86_64.tar.gz -O /opt/eclipse.tar.gz
|
|
|
|
- name: unzip eclipse
|
|
shell: tar -xf /opt/eclipse.tar.gz --directory=/opt/
|
|
|
|
- name: remove downloaded .tar.gz
|
|
shell: rm -rf /opt/eclipse.tar.gz
|
|
|
|
- name: link eclipse to /usr/local/bin/
|
|
shell: ln -s /opt/eclipse/eclipse /usr/local/bin/
|
|
|
|
- name: download icon
|
|
shell: cp /opt/eclipse/icon.xpm /usr/share/icons/eclipse.xpm
|
|
|
|
|
|
- name: make icon to gnome
|
|
shell: printf '[Desktop Entry]\n
|
|
Version=1.0\n
|
|
Type=Application\n
|
|
Terminal=false\n
|
|
Exec=eclipse\n
|
|
Name=eclipse\n
|
|
Icon=eclipse\n
|
|
Categories=Development\n
|
|
Comment=Scientific computing environment\n
|
|
StartupNotify=true\n ' > /usr/share/applications/eclipse.desktop
|
|
|
|
- name: Download Papyrus
|
|
shell: wget https://denali.kcir.pwr.edu.pl/~jdelicat/papyrus.tar.gz -O /opt/papyrus.tar.gz
|
|
|
|
- name: untar
|
|
shell: tar -xf /opt/papyrus.tar.gz --directory=/opt/eclipse/dropins
|
|
|
|
- name: remove papyrus tar
|
|
shell: rm /opt/papyrus.tar.gz
|