homeserver-iac/inventory.example.yml
2023-09-10 21:00:15 -04:00

71 lines
1.6 KiB
YAML

# Copy this to inventory.yml and modify accordingly
# fallback_host is only used during setup before the static IP (local_ip) is configured.
# Set fallback_host using `nmap 192.168.0.0/24 -p 22` to find the dynamic IP of your Pi
# local_ip is used after first setup.
# Make entries in your .ssh/config for ease of use
# Example:
#
# Host your_fleet_host
# HostName 192.168.0.86
# Port 2500
# IdentityFile ~/.ssh/keys/your_fleet_host
all:
hosts:
your_bastion_host:
fallback_host: 192.168.0.123
local_ip: 192.168.0.3
ansible_port: 2500
ansible_connection: ssh
ansible_ssh_private_key_file: ~/.ssh/keys/your_bastion_host
your_fleet_host:
fallback_host: 192.168.0.124
local_ip: 192.168.0.86
ansible_port: 2500
ansible_connection: ssh
ansible_ssh_private_key_file: ~/.ssh/keys/your_fleet_host
children:
fleet:
children:
gitea:
hosts:
your_fleet_host:
syncthing:
hosts:
your_fleet_host:
synapse:
hosts:
your_fleet_host:
navidrome:
hosts:
your_fleet_host:
bastion:
children:
ddclient:
hosts:
your_bastion_host:
nameserver:
hosts:
your_bastion_host:
caddy:
hosts:
your_bastion_host:
haproxy:
hosts:
your_bastion_host:
sshd:
hosts:
your_bastion_host:
your_fleet_host:
mailserver:
hosts:
your_bastion_host:
your_fleet_host:
website:
hosts:
your_bastion_host: