mirror of
https://forge.murkfall.net/bluesaxman/old_murkfall_playbooks.git
synced 2026-03-13 02:34:20 -06:00
Initial Archival Commit of all playbooks
This commit is contained in:
74
playbooks/fixit_smarthome
Normal file
74
playbooks/fixit_smarthome
Normal file
@@ -0,0 +1,74 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
vars:
|
||||
password: rolaids
|
||||
tasks:
|
||||
- name: Create OpenHab Volumes 1/3
|
||||
docker_volume:
|
||||
name: openhab_addons
|
||||
|
||||
- name: Create OpenHab Volumes 2/3
|
||||
docker_volume:
|
||||
name: openhab_conf
|
||||
|
||||
- name: Create OpenHab Volumes 3/3
|
||||
docker_volume:
|
||||
name: openhab_userdata
|
||||
|
||||
- name: Create deconz config
|
||||
docker_volume:
|
||||
name: deconz_conf
|
||||
|
||||
- name: Create network interfaces 1/1
|
||||
command: /usr/bin/ip addr add 192.168.1.68/24 dev enp2s0
|
||||
ignore_errors: True
|
||||
|
||||
- name: Start deCONZ
|
||||
docker_container:
|
||||
name: deCONZ
|
||||
hostname: ConBee
|
||||
image: deconzcommunity/deconz:stable
|
||||
recreate: yes
|
||||
pull: true
|
||||
ports:
|
||||
- "192.168.1.68:80:80"
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- deconz_conf:/opt/deCONZ
|
||||
devices:
|
||||
- /dev/ttyACM1:/dev/ttyACM1
|
||||
env:
|
||||
DECONZ_DEVICE=/dev/ttyACM1
|
||||
memory: 2G
|
||||
restart_policy: unless-stopped
|
||||
container_default_behavior: compatibility
|
||||
|
||||
|
||||
- name: Start OpenHab
|
||||
docker_container:
|
||||
name: openhab
|
||||
hostname: openhab
|
||||
recreate: yes
|
||||
image: openhab/openhab:latest
|
||||
interactive: yes
|
||||
tty: yes
|
||||
ports:
|
||||
- "192.168.1.68:8080:8080"
|
||||
- "192.168.1.68:8181:8181"
|
||||
- "192.168.1.68:8448:8448"
|
||||
- "192.168.1.68:5007:5007"
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- openhab_addons:/openhab/addons
|
||||
- openhab_conf:/openhab/conf
|
||||
- openhab_userdata:/openhab/userdata
|
||||
devices:
|
||||
- /dev/ttyACM0:/dev/ttyACM0
|
||||
- /dev/ttyACM1:/dev/ttyACM1
|
||||
pull: true
|
||||
memory: 1G
|
||||
restart_policy: unless-stopped
|
||||
container_default_behavior: compatibility
|
||||
env:
|
||||
EXTRA_JAVA_OPTS="-Duser.timezone=US/Mountain"
|
||||
CRYPTO_POLICY=unlimited
|
||||
Reference in New Issue
Block a user