Add homeassistant host

This commit is contained in:
Timo Makinen 2023-01-29 18:50:40 +00:00
parent 810e64dde7
commit dc5717712d
4 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,7 @@
---
datadisks:
- {size: 10, type: hdd}
firewall_in:
- {proto: tcp, port: 22, from: [172.20.20.0/22]}
- {proto: tcp, port: 443, from: [172.20.20.0/22]}
- {proto: tcp, port: 4949, from: [172.20.20.0/22]}

View file

@ -0,0 +1,11 @@
---
vmhost: vmhost01.home.foo.sh
network_interfaces:
- device: eth0
vlan: 20
mac: 52:54:00:ac:dc:73
- device: eth1
vlan: 27
ipaddr: 172.20.27.6
netmask: 255.255.255.0
proto: static

View file

@ -20,6 +20,11 @@ fsolgw:
git:
hosts:
git02.home.foo.sh:
homeassistant:
hosts:
homeassistant01.home.foo.sh:
vars:
homeassistant_version: 2023.1
influxdb:
hosts:
influxdb01.home.foo.sh:
@ -134,6 +139,7 @@ openbsd:
rocky8:
children:
collab:
homeassistant:
mail:
minecraft:
munin:

View file

@ -0,0 +1,25 @@
---
- name: Deploy KVM virtual machines
ansible.builtin.import_playbook: >-
include/deploy-kvm-guest.yml myhosts=homeassistant
- name: Configure instance
hosts: homeassistant
user: root
gather_facts: true
pre_tasks:
- name: Mount /export
ansible.posix.mount:
name: /export
src: LABEL=/export
fstype: xfs
opts: noatime,nosuid,nodev
passno: "0"
dump: "0"
state: mounted
roles:
- base
- ldap
- homeassistant