Add homeassistant host
This commit is contained in:
parent
810e64dde7
commit
dc5717712d
4 changed files with 49 additions and 0 deletions
7
group_vars/homeassistant.yml
Normal file
7
group_vars/homeassistant.yml
Normal 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]}
|
11
host_vars/homeassistant01.home.foo.sh.yml
Normal file
11
host_vars/homeassistant01.home.foo.sh.yml
Normal 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
|
|
@ -20,6 +20,11 @@ fsolgw:
|
||||||
git:
|
git:
|
||||||
hosts:
|
hosts:
|
||||||
git02.home.foo.sh:
|
git02.home.foo.sh:
|
||||||
|
homeassistant:
|
||||||
|
hosts:
|
||||||
|
homeassistant01.home.foo.sh:
|
||||||
|
vars:
|
||||||
|
homeassistant_version: 2023.1
|
||||||
influxdb:
|
influxdb:
|
||||||
hosts:
|
hosts:
|
||||||
influxdb01.home.foo.sh:
|
influxdb01.home.foo.sh:
|
||||||
|
@ -134,6 +139,7 @@ openbsd:
|
||||||
rocky8:
|
rocky8:
|
||||||
children:
|
children:
|
||||||
collab:
|
collab:
|
||||||
|
homeassistant:
|
||||||
mail:
|
mail:
|
||||||
minecraft:
|
minecraft:
|
||||||
munin:
|
munin:
|
||||||
|
|
25
playbooks/homeassistant.yml
Normal file
25
playbooks/homeassistant.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue