Correctly check hostname against PVE hosts
Some of the hostnames have `-` in instead, which caused issues with the SSH config detecting which users to allow
This commit is contained in:
@ -1 +1,4 @@
|
||||
TZ: Europe/London
|
||||
|
||||
# HACK: Some of the hostnames aren't valid dict keys
|
||||
hostname_slug: "{{ ansible_hostname | replace('-', '_') }}"
|
||||
|
@ -1 +1 @@
|
||||
private_ip: "{{ nebula.clients[ansible_hostname].ip }}"
|
||||
private_ip: "{{ nebula.clients[hostname_slug].ip }}"
|
||||
|
@ -9,7 +9,7 @@ pve_hosts:
|
||||
ip: 10.23.1.13
|
||||
jellyfin:
|
||||
ip: 10.23.1.101
|
||||
pve_docker:
|
||||
docker:
|
||||
ip: 10.23.1.103
|
||||
gitlab:
|
||||
ip: 10.23.1.106
|
||||
|
Reference in New Issue
Block a user