From 5b991e1a11faa14822bc2ea27b8dcb949e12ba61 Mon Sep 17 00:00:00 2001 From: heqnx Date: Tue, 24 Jun 2025 13:42:17 +0300 Subject: added random hex to hostname --- vars/main.yaml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vars') diff --git a/vars/main.yaml b/vars/main.yaml index 8c2d0b2..759bcfb 100644 --- a/vars/main.yaml +++ b/vars/main.yaml @@ -29,6 +29,8 @@ wireguard_packages: - iproute2 fail2ban_jail_dir: /etc/fail2ban/jail.d +random_hex: "{{ lookup('password', '/dev/null', length=8, chars='abcdefghijklmnopqrstuvwxyz0123456789') }}" +pve_hostname: "{{ hostname }}-{{ random_hex }}" wg_server_home: /etc/wireguard wg_peers_home: "{{ wg_server_home }}/peers.d" wg_ip_file: "{{ wg_server_home }}/ips.txt" -- cgit v1.2.3