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

@@ -8,6 +8,10 @@
is_localhost: "{{ inventory_hostname == '127.0.0.1' }}"
is_proxmox_node: "{{ 'proxmox_nodes' in group_names }}"
roles:
- role: common
tags:
- common
when: not is_localhost
- role: proxmox
tags:
- proxmox