Add audiobook hosts
This commit is contained in:
parent
4c7c0e3261
commit
ae7ec4680f
4 changed files with 43 additions and 0 deletions
8
group_vars/audiobooks.yml
Normal file
8
group_vars/audiobooks.yml
Normal 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]}
|
6
host_vars/audiobooks02.home.foo.sh.yml
Normal file
6
host_vars/audiobooks02.home.foo.sh.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
vmhost: vmhost02.home.foo.sh
|
||||||
|
network_interfaces:
|
||||||
|
- device: eth0
|
||||||
|
vlan: 20
|
||||||
|
mac: "52:54:00:ac:dc:48"
|
|
@ -3,6 +3,9 @@ adm:
|
||||||
hosts:
|
hosts:
|
||||||
adm01.home.foo.sh:
|
adm01.home.foo.sh:
|
||||||
adm02.home.foo.sh:
|
adm02.home.foo.sh:
|
||||||
|
audiobooks:
|
||||||
|
hosts:
|
||||||
|
audiobooks02.home.foo.sh:
|
||||||
backup:
|
backup:
|
||||||
hosts:
|
hosts:
|
||||||
backup02.home.foo.sh:
|
backup02.home.foo.sh:
|
||||||
|
@ -161,6 +164,7 @@ rocky8:
|
||||||
rocky9:
|
rocky9:
|
||||||
children:
|
children:
|
||||||
adm:
|
adm:
|
||||||
|
audiobooks:
|
||||||
frigate:
|
frigate:
|
||||||
gitea:
|
gitea:
|
||||||
homeassistant:
|
homeassistant:
|
||||||
|
|
25
playbooks/audiobooks.yml
Normal file
25
playbooks/audiobooks.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue