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,26 +1,22 @@
$ANSIBLE_VAULT;1.1;AES256
66323965326561656434636164616434353663633933346332373537663136323465323461306337
3733663066623866333534366430663761653262646662650a323938306636653965656361646330
66313965376537643033666165366435653862663231383366636166373238666334313836313138
6164353263323136300a653236636334643832396534623735316465623133373838353163313136
33303331313037376336623637356633383734343338386634646335616632646366366138643539
37303531346430323330396637316632643065346537386433663431373437376261366263306264
63323235303632356661373463383565613764323733343839653139613766633036346234316432
37626432333935613566386631346161623133366438343630316237363730626234336462303132
38323132363631653432643462306133323266333637346139343961623430363436663763383234
66343232386263646633653739343963333364386630376638396261326563333935643437646638
63656664633838336535613963393434336264656265356238306237626361336533643363323838
30376236613236386133383130633164306632323630383932383432353439646266386239383834
32346431306662346166653738333138643733623739623536303639663136336533373230643533
64323037303161306435316662653237356161393239656362383261306366336134353438326233
62363532396336616261383735386535396363386339333962623233383534393033306662666266
66316237616137366639333439613732666638376163373235306663323762613466363636346337
38393762653537316134316234363066363439623164356237313566626533326332646663313838
38383633616538353833353634376236656433383464303538613663383838633538616136313365
64643438316638333433366137656634353039663763353734616432306465386563353665666136
63383739323038333537396433303332343235383562376438633237663465396366643438353862
32646637323530356432386662613366323234323639653139306665623865613666623133656465
31636334666638623939393366663935363434613731386365303130343439376430613331663561
30353738346138343563383738393666333761333231303366386563303165363039313263343563
36303533353165323461376461623665313938356535363462663737643265636137613366616639
38383761343161336462373563383338393435326331353132333336666330306638
34316133396533396139633865623964346462666461313938663138313133393538636137383239
3135346533313734393638396530383066623765326266360a666235636561623863613538346235
38663039313737373961383935636233633563376230326535636539633366363261316436636630
3834383036386132640a383566323963666531623333336635636266623666343262386566653133
34613765323062646362333364366533613234356132333864373139316631633039616666323731
38643562333432393736626566346234336333643132373535316532336339623533333863656131
65333537643637326465333030663662653461326231613363386637316333323064333163396130
30653934663465613461666566623935626530663161666436616338333235313338333830386235
30353331333731393336616466396438356131383737366137346266336136353236623765366266
31393161366433613562373663616434343161663539313536316538616530613166656562633466
37663864643763626663373731313664333832386138363132646631366431636634393933363830
34336536313064626333353630613366326539326662316236666263336435363061333634663964
62346662643361313434663065363534643635633733376634396534363962653735666338366661
32623939343334326237663934363337316364376264626566303539613564336361343762663431
38313737336332316263333664373663653366306165386631663730346163613839303166613064
31653638623064653665393739636664316139383732323036636636336538396238313337323562
39666235313439336336336635386638633562383630383565336436626137383432373632613563
37373235326562393966383037663764306430393431346662363530386563633638316539323833
30316130336439633961303930376132613030366265313835386536363730326564333561313833
65393136333330653231343830323534623463663765393166666631353035613238376161636632
3838

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 }}"