2021-08-25 04:33:56 +00:00
|
|
|
# When adding a new host:
|
|
|
|
# 1. create new user `useradd -m -G sudo -s /bin/bash ansible`
|
|
|
|
# 2. configure user password `passwd ansible` (set password to badjnet/ssh/ansible)
|
|
|
|
|
2021-11-12 20:20:41 +00:00
|
|
|
# Actual config starts here
|
2021-08-25 04:33:56 +00:00
|
|
|
all:
|
|
|
|
hosts:
|
|
|
|
pfsense:
|
|
|
|
ansible_host: 192.168.30.1
|
2023-03-14 18:48:55 +00:00
|
|
|
truenas:
|
|
|
|
ansible_host: 192.168.20.30
|
2021-08-25 04:33:56 +00:00
|
|
|
children:
|
2024-08-08 02:02:28 +00:00
|
|
|
pihole:
|
|
|
|
hosts:
|
|
|
|
pihole:
|
|
|
|
ansible_host: 192.168.20.2
|
2021-08-25 04:33:56 +00:00
|
|
|
proxmox:
|
|
|
|
hosts:
|
|
|
|
router-0:
|
|
|
|
ansible_host: 192.168.10.10
|
2024-09-13 04:56:15 +00:00
|
|
|
nut_client:
|
2024-09-15 22:12:43 +00:00
|
|
|
ups: liebert-psi
|
2024-09-13 04:56:15 +00:00
|
|
|
sched:
|
|
|
|
# We want to shutdown this server last
|
2024-09-15 22:12:43 +00:00
|
|
|
on_bat: 10800
|
2021-12-05 02:40:14 +00:00
|
|
|
server-0:
|
|
|
|
ansible_host: 192.168.10.11
|
2021-12-13 04:48:57 +00:00
|
|
|
vfio_pci_ids:
|
|
|
|
- '1000:0086' # Broadcom / LSI SAS2308 PCI-Express Fusion-MPT SAS-2
|
2024-03-26 01:08:21 +00:00
|
|
|
server-1:
|
|
|
|
ansible_host: 192.168.10.12
|
|
|
|
vfio_pci_ids:
|
2024-08-17 18:17:54 +00:00
|
|
|
# - '1002:731f' # Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
|
|
|
|
- '10de:13c2' # NVIDIA Corporation GM204 [GeForce GTX 970]
|
2024-08-07 04:49:54 +00:00
|
|
|
- '10de:13f1' # VGA compatible controller [0300]: NVIDIA Corporation GM204GL [Quadro M4000]
|
2024-09-13 04:56:15 +00:00
|
|
|
nut_client:
|
2024-09-15 22:12:43 +00:00
|
|
|
ups: liebert-psi
|
2024-09-13 04:56:15 +00:00
|
|
|
sched:
|
|
|
|
# We want to shutdown this server quick
|
2024-09-15 22:12:43 +00:00
|
|
|
on_bat: 15
|
2023-12-23 21:36:22 +00:00
|
|
|
bastion:
|
2021-08-25 04:33:56 +00:00
|
|
|
hosts:
|
2021-12-17 23:17:18 +00:00
|
|
|
bastion:
|
2021-08-25 04:33:56 +00:00
|
|
|
ansible_host: 192.168.20.10
|
2021-12-17 23:17:18 +00:00
|
|
|
users_enable_sudo: false
|
2023-06-17 02:53:07 +00:00
|
|
|
minecraft-server:
|
2024-08-08 02:02:28 +00:00
|
|
|
# hosts:
|
|
|
|
# minecraft-server:
|
|
|
|
# ansible_host: 192.168.20.32
|
|
|
|
# mc_server_jar: https://piston-data.mojang.com/v1/objects/5b868151bd02b41319f54c8d4061b8cae84e665c/server.jar
|
|
|
|
# mc_server_memory: 3500M
|
|
|
|
# mc_server_ops:
|
|
|
|
# - uuid: 649a9370-5cad-4553-93c8-cf0af25208dd
|
|
|
|
# name: jirost
|
|
|
|
# level: 4
|
2024-01-16 22:42:39 +00:00
|
|
|
home-assistant:
|
2024-08-06 17:41:57 +00:00
|
|
|
# hosts:
|
|
|
|
# home-assistant:
|
|
|
|
# ansible_host: 192.168.31.20
|
2023-11-18 07:42:26 +00:00
|
|
|
cups:
|
2024-08-06 17:41:57 +00:00
|
|
|
# hosts:
|
|
|
|
# cups:
|
|
|
|
# ansible_host: cups.local
|
|
|
|
usbip:
|
2023-11-18 07:42:26 +00:00
|
|
|
hosts:
|
2024-08-06 17:41:57 +00:00
|
|
|
usbip:
|
|
|
|
ansible_host: 192.168.20.33
|
|
|
|
exposed_usb_devices:
|
|
|
|
- 2-1
|
2024-10-14 22:19:06 +00:00
|
|
|
jellyfin:
|
|
|
|
hosts:
|
|
|
|
jellyfin:
|
|
|
|
ansible_host: 192.168.20.34
|
|
|
|
nfs:
|
|
|
|
- path: /mnt/Movies
|
|
|
|
src: 192.168.20.30:/mnt/pool0/media/Movies
|
|
|
|
- path: /mnt/Series
|
|
|
|
src: 192.168.20.30:/mnt/pool0/media/Series
|
2021-08-25 04:33:56 +00:00
|
|
|
k3s:
|
|
|
|
children:
|
|
|
|
k3s-server:
|
|
|
|
hosts:
|
2022-07-21 00:25:58 +00:00
|
|
|
k3s-server0:
|
2021-08-25 04:33:56 +00:00
|
|
|
ansible_host: 192.168.20.20
|
2022-07-21 00:25:58 +00:00
|
|
|
platform: vm
|
|
|
|
k3s_extra_args: --node-taint kubernetes.io/arch=amd64:PreferNoSchedule
|
2021-08-25 04:33:56 +00:00
|
|
|
k3s-agent:
|
|
|
|
hosts:
|
2022-07-21 00:25:58 +00:00
|
|
|
k3s-agent0:
|
2021-08-25 04:33:56 +00:00
|
|
|
ansible_host: 192.168.20.21
|
2021-12-15 01:55:52 +00:00
|
|
|
platform: raspberrypi
|
2022-07-21 00:25:58 +00:00
|
|
|
k3s-agent1:
|
2021-08-25 04:33:56 +00:00
|
|
|
ansible_host: 192.168.20.22
|
2021-12-15 01:55:52 +00:00
|
|
|
platform: raspberrypi
|
2022-07-21 00:25:58 +00:00
|
|
|
k3s-agent2:
|
2021-08-25 04:33:56 +00:00
|
|
|
ansible_host: 192.168.20.23
|
2021-12-15 01:55:52 +00:00
|
|
|
platform: raspberrypi
|
2022-07-21 00:25:58 +00:00
|
|
|
k3s-agent3:
|
2021-12-15 01:55:52 +00:00
|
|
|
ansible_host: 192.168.20.24
|
2022-07-21 00:25:58 +00:00
|
|
|
platform: raspberrypi
|
2024-03-26 01:08:21 +00:00
|
|
|
k3s-agent4:
|
|
|
|
ansible_host: 192.168.20.25
|
|
|
|
platform: vm
|
|
|
|
k3s_extra_args: --node-taint kubernetes.io/arch=amd64:PreferNoSchedule
|
2023-03-14 18:48:55 +00:00
|
|
|
generic-linux:
|
2021-08-25 04:33:56 +00:00
|
|
|
hosts:
|
|
|
|
ubiquiti:
|
2022-08-29 01:25:27 +00:00
|
|
|
ansible_host: 192.168.10.2
|
2024-09-15 22:12:43 +00:00
|
|
|
satisfactory:
|
|
|
|
ansible_host: 192.168.20.31
|
2021-08-25 04:33:56 +00:00
|
|
|
children:
|
2021-11-12 20:20:41 +00:00
|
|
|
proxmox:
|
2023-12-23 21:36:22 +00:00
|
|
|
bastion:
|
2021-08-25 04:33:56 +00:00
|
|
|
k3s:
|
2022-08-29 13:23:19 +00:00
|
|
|
plex:
|
2023-06-17 02:53:07 +00:00
|
|
|
minecraft-server:
|
2024-01-16 22:42:39 +00:00
|
|
|
home-assistant:
|
2023-11-18 07:42:26 +00:00
|
|
|
cups:
|
2024-08-06 17:41:57 +00:00
|
|
|
usbip:
|
2024-08-08 02:02:28 +00:00
|
|
|
pihole:
|
2024-10-14 22:19:06 +00:00
|
|
|
jellyfin:
|
2021-08-25 04:33:56 +00:00
|
|
|
vars:
|
2023-02-20 15:37:36 +00:00
|
|
|
ansible_user: ansible
|
|
|
|
ansible_password: !vault |
|
|
|
|
$ANSIBLE_VAULT;1.1;AES256
|
|
|
|
34376132666239383830316437356430306535396466396537323833633137376239386464343363
|
|
|
|
6234303430623964353762383935323335383737666533390a643033363235383138393932393833
|
|
|
|
34633732646430383131643662626635373661373261323365366531316439653963353739383664
|
|
|
|
6139363534616231380a373931333530373339653132626238333566663362343663623532393330
|
|
|
|
35616230643533363032623066376536366236353335373130643262613561396131
|
|
|
|
ansible_become: 'yes'
|
|
|
|
ansible_become_password: !vault |
|
|
|
|
$ANSIBLE_VAULT;1.1;AES256
|
|
|
|
34376132666239383830316437356430306535396466396537323833633137376239386464343363
|
|
|
|
6234303430623964353762383935323335383737666533390a643033363235383138393932393833
|
|
|
|
34633732646430383131643662626635373661373261323365366531316439653963353739383664
|
|
|
|
6139363534616231380a373931333530373339653132626238333566663362343663623532393330
|
|
|
|
35616230643533363032623066376536366236353335373130643262613561396131
|