Remove openhab
This commit is contained in:
parent
ee9b4954d4
commit
0da60fd545
1 changed files with 0 additions and 51 deletions
51
pottwal.yml
51
pottwal.yml
|
@ -7,13 +7,6 @@
|
|||
|
||||
data_dir: "/srv/data"
|
||||
|
||||
|
||||
openhab_image: openhab/openhab:2.5.11
|
||||
openhab_data: "{{ data_dir }}/openhab"
|
||||
openhab_host_port: 8081
|
||||
openhab_configuration_source: https://github.com/netz39/n39-openhab.git
|
||||
openhab_configuration_version: master
|
||||
|
||||
gitea_host_port: 9091
|
||||
uritools_host_port: 8080
|
||||
entities_validation_svc_host_port: 8082
|
||||
|
@ -87,50 +80,6 @@
|
|||
ports:
|
||||
- 3142:3142
|
||||
|
||||
- name: Ensure the openhab directories exist
|
||||
file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
with_items:
|
||||
- "{{ openhab_data }}/addons"
|
||||
- "{{ openhab_data }}/conf"
|
||||
- "{{ openhab_data }}/userdata"
|
||||
|
||||
- name: Clone or update configuration
|
||||
git:
|
||||
repo: "{{ openhab_configuration_source }}"
|
||||
version: "{{ openhab_configuration_version }}"
|
||||
dest: "{{ openhab_data }}/conf"
|
||||
clone: yes
|
||||
update: yes
|
||||
|
||||
- name: ensure openhab is up and running
|
||||
docker_container:
|
||||
name: openhab
|
||||
image: "{{ openhab_image }}"
|
||||
pull: true
|
||||
state: started
|
||||
detach: yes
|
||||
interactive: yes
|
||||
tty: yes
|
||||
ports:
|
||||
- "{{ openhab_host_port }}:8080"
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
- "{{ openhab_data }}/addons:/openhab/addons:rw"
|
||||
- "{{ openhab_data }}/conf:/openhab/conf:rw"
|
||||
- "{{ openhab_data }}/userdata:/openhab/userdata:rw"
|
||||
keep_volumes: yes
|
||||
restart_policy: unless-stopped
|
||||
env: EXTRA_JAVA_OPTS="-Duser.timezone=Europe/Berlin"
|
||||
|
||||
- name: Setup proxy site openhab.n39.eu
|
||||
include_role:
|
||||
name: setup-http-site-proxy
|
||||
vars:
|
||||
site_name: openhab.n39.eu
|
||||
proxy_port: "{{ openhab_host_port }}"
|
||||
|
||||
- name: Ensure container for URI tools is running
|
||||
docker_container:
|
||||
|
|
Loading…
Reference in a new issue