refactor(ansible): restructure inventory and remove postgres role
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
13
inventory/docker.ini
Normal file
13
inventory/docker.ini
Normal file
@@ -0,0 +1,13 @@
|
||||
[docker_host]
|
||||
docker-host01 ansible_become_pass: "{{ vault.docker.host01.sudo }}"
|
||||
docker-host10
|
||||
docker-host12
|
||||
|
||||
[docker_lb]
|
||||
docker-lb ansible_become_pass: "{{ vault.docker.lb.sudo }}"
|
||||
|
||||
[docker]
|
||||
|
||||
[docker:children]
|
||||
docker_host
|
||||
docker_lb
|
||||
21
inventory/k3s.ini
Normal file
21
inventory/k3s.ini
Normal file
@@ -0,0 +1,21 @@
|
||||
[k3s]
|
||||
|
||||
[k3s:children]
|
||||
k3s_server
|
||||
k3s_agent
|
||||
k3s_storage
|
||||
k3s_storage
|
||||
k3s_loadbalancer
|
||||
|
||||
[k3s_server]
|
||||
k3s-server10
|
||||
|
||||
[k3s_agent]
|
||||
k3s-agent[10:12]
|
||||
|
||||
[k3s_storage]
|
||||
k3s-longhorn[10:12]
|
||||
|
||||
[k3s_loadbalancer]
|
||||
k3s-loadbalancer
|
||||
|
||||
11
inventory/proxmox.ini
Normal file
11
inventory/proxmox.ini
Normal file
@@ -0,0 +1,11 @@
|
||||
[proxmox]
|
||||
127.0.0.1 ansible_connection=local
|
||||
|
||||
[proxmox:children]
|
||||
proxmox_nodes
|
||||
|
||||
[proxmox_nodes]
|
||||
aya01
|
||||
lulu
|
||||
inko
|
||||
naruto01
|
||||
3
inventory/vps.ini
Normal file
3
inventory/vps.ini
Normal file
@@ -0,0 +1,3 @@
|
||||
[vps]
|
||||
mii
|
||||
|
||||
Reference in New Issue
Block a user