2
0
mirror of https://github.com/schnidrig/openhab-ansible synced 2026-01-12 00:48:46 +01:00

added gardena monitor

This commit is contained in:
Christian Schnidrig
2019-07-05 20:21:27 +02:00
parent dbeff3ea46
commit caf4dcd77a
6 changed files with 60 additions and 3 deletions

View File

@@ -23,13 +23,12 @@
url: "{{ item.src }}"
dest: "/usr/share/openhab2/runtime/lib/boot/{{ item.name }}"
loop:
- { name: "jython-standalone-2.7.0.jar", src: "http://search.maven.org/remotecontent?filepath=org/python/jython-standalone/2.7.0/jython-standalone-2.7.0.jar" }
#- { name: "jython-standalone-2.7.0.jar", src: 'http://search.maven.org/remotecontent?filepath=org/python/jython-standalone/2.7.0/jython-standalone-2.7.0.jar' }
- { name: "snakeyaml-1.18.jar", src: "http://central.maven.org/maven2/org/yaml/snakeyaml/1.18/snakeyaml-1.18.jar" }
tags:
- openhab2
- jython
- name: cron job
cron:
name: "restart openhab"
@@ -55,3 +54,24 @@
tags:
- openhab2
- openhab_cron
- name: install python modules for jython
pip:
virtualenv: "/etc/openhab2/automation/lib/python"
virtualenv_command: "/usr/bin/virtualenv"
virtualenv_python: "/usr/bin/python2.7"
name: jsonmerge
tags:
- openhab2
- name: enable virtual env from above in jython
lineinfile:
path: "/etc/default/openhab2"
regexp: '^EXTRA_JAVA_OPTS='
line: 'EXTRA_JAVA_OPTS="-Dpython.path=/etc/openhab2/automation/lib/python/lib/python2.7/site-packages/"'
tags:
- openhab2