diff options
author | heqnx <root@heqnx.com> | 2025-06-27 14:36:04 +0300 |
---|---|---|
committer | heqnx <root@heqnx.com> | 2025-06-27 14:36:04 +0300 |
commit | cb3dc22df728272ad05de3684eb8dc672654a05e (patch) | |
tree | 4c3ddd6505b82d4559ced35232e3ea028b70da1d /vars | |
parent | 12756a89c2089f696c9e05bf8c95a093e25521a4 (diff) | |
download | ansible-pve-host-cb3dc22df728272ad05de3684eb8dc672654a05e.tar.gz ansible-pve-host-cb3dc22df728272ad05de3684eb8dc672654a05e.zip |
added conditional dnsmasq setup for vmbr1 and ufw filter rules; fixed a couple of issues by removing /etc/pve/priv, no need for modifying it
Diffstat (limited to 'vars')
-rw-r--r-- | vars/main.yaml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vars/main.yaml b/vars/main.yaml index 759bcfb..bba2170 100644 --- a/vars/main.yaml +++ b/vars/main.yaml @@ -29,8 +29,9 @@ wireguard_packages: - iproute2 fail2ban_jail_dir: /etc/fail2ban/jail.d -random_hex: "{{ lookup('password', '/dev/null', length=8, chars='abcdefghijklmnopqrstuvwxyz0123456789') }}" +random_hex: "{{ ((ansible_date_time.epoch | string) ~ inventory_hostname) | hash('md5') | truncate(8, end='') }}" pve_hostname: "{{ hostname }}-{{ random_hex }}" +nat_subnet_prefix: "{{ nat_subnet.split('.')[0:3] | join('.') }}" wg_server_home: /etc/wireguard wg_peers_home: "{{ wg_server_home }}/peers.d" wg_ip_file: "{{ wg_server_home }}/ips.txt" |