Ver código fonte

Add facility for installing siso-rt

Matthias Vogelgesang 10 anos atrás
pai
commit
50cd789eb4
2 arquivos alterados com 34 adições e 0 exclusões
  1. 30 0
      roles/detector/handlers/main.yml
  2. 4 0
      roles/detector/vars/main.yml

+ 30 - 0
roles/detector/handlers/main.yml

@@ -0,0 +1,30 @@
+---
+- name: run ldconfig
+  command: ldconfig
+
+# This is a temporary solution until the run time is packaged for openSUSE 13.1
+- name: download siso run-time
+  get_url: url=http://www.ipe.fzk.de/~vogelgesang/{{ item }}
+           dest=/var/opt
+  with_items: siso_packages
+  notify:
+    - install siso run-time
+
+# We use --nodeps because something inside the RPM wants to have libtiff.3.so
+# ...
+- name: install siso run-time
+  command: rpm --nodeps -i /var/opt/{{ item }}
+  with_items: siso_packages
+  notify:
+    - fix siso libs
+
+# That's probably better than changing the library path
+- name: fix siso libs
+  file: src=/opt/siso/lib/{{ item }} dest=/usr/lib64/{{ item }}  state=link
+  with_items:
+    - libclserme4.so
+    - libfglib5.so
+    - libhaprt.so
+    - libme4.so
+  notify:
+    - run ldconfig

+ 4 - 0
roles/detector/vars/main.yml

@@ -0,0 +1,4 @@
+---
+siso_packages:
+    - siso-rt5-5.1.0-6.x86_64.rpm
+    - siso-rt5-gui-5.1.0-6.x86_64.rpm