Add audiobook hosts

This commit is contained in:
Timo Makinen 2025-03-01 19:11:33 +00:00
parent 4c7c0e3261
commit ae7ec4680f
4 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,8 @@
---
datadisks:
- {size: 50, 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: 9100, from: [172.20.20.0/22]}

View file

@ -0,0 +1,6 @@
---
vmhost: vmhost02.home.foo.sh
network_interfaces:
- device: eth0
vlan: 20
mac: "52:54:00:ac:dc:48"

View file

@ -3,6 +3,9 @@ adm:
hosts:
adm01.home.foo.sh:
adm02.home.foo.sh:
audiobooks:
hosts:
audiobooks02.home.foo.sh:
backup:
hosts:
backup02.home.foo.sh:
@ -161,6 +164,7 @@ rocky8:
rocky9:
children:
adm:
audiobooks:
frigate:
gitea:
homeassistant:

25
playbooks/audiobooks.yml Normal file
View file

@ -0,0 +1,25 @@
---
- name: Deploy KVM virtual machines
ansible.builtin.import_playbook: include/deploy-kvm-guest.yml
vars:
myhosts: audiobooks
- name: Configure instance
hosts: audiobooks
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
- audiobookshelf