diff options
author | heqnx <root@heqnx.com> | 2025-06-24 13:42:17 +0300 |
---|---|---|
committer | heqnx <root@heqnx.com> | 2025-06-24 13:42:17 +0300 |
commit | 5b991e1a11faa14822bc2ea27b8dcb949e12ba61 (patch) | |
tree | 9aa9cb08715c6ebb1996e5b8a7f28b7aae0ef86e /vars | |
parent | 3115a425134f836676da5827582719fe88f0f4ff (diff) | |
download | ansible-pve-host-5b991e1a11faa14822bc2ea27b8dcb949e12ba61.tar.gz ansible-pve-host-5b991e1a11faa14822bc2ea27b8dcb949e12ba61.zip |
added random hex to hostname
Diffstat (limited to 'vars')
-rw-r--r-- | vars/main.yaml | 2 |
1 files changed, 2 insertions, 0 deletions
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" |