refactor(ansible): restructure inventory and remove postgres role

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2025-07-12 20:35:26 +02:00
parent cb8ccd8f00
commit 3d7f652ff3
42 changed files with 114 additions and 513 deletions

View File

@@ -1,11 +1,3 @@
db:
default_user:
user: "postgres"
name: "k3s"
user: "k3s"
password: "{{ vault_k3s.postgres.db.password }}"
listen_address: "{{ k3s.db.ip }}"
k3s:
net: "192.168.20.0/24"
server:
@@ -24,5 +16,3 @@ k3s:
- 192.168.20.25
- 192.168.20.26
- 192.168.20.27
k3s_db_connection_string: "postgres://{{ db.user }}:{{ db.password }}@{{ k3s.db.ip }}:{{ k3s.db.default_port }}/{{ db.name }}"