refactor(ansible): refactor common role application and improve vm ssh config

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2025-04-27 17:46:41 +02:00
parent 591342f580
commit 7fcee3912f
7 changed files with 34 additions and 27 deletions

View File

@@ -51,9 +51,12 @@
Host {{ vm.name }}
HostName {{ vm_found_ip }}
Port 22
User tudattr
IdentityFile /media/veracrypt1/genesis
User {{ user }}
IdentityFile {{ pk_path }}
IdentityFile ~/.ssh/id_ed25519
IdentityFile ~/.ssh/id_ed25519-cert.pub
ProxyJump {{ vm.node }}
StrictHostKeyChecking no
- name: Append new VM to SSH config
ansible.builtin.blockinfile: