proxmox: only install firewall rules on one node

And let the cluster take care of distribution.
This commit is contained in:
Timotej Lazar 2024-05-14 12:40:33 +02:00
parent 3f53c84865
commit be915dcf69
4 changed files with 9 additions and 8 deletions

View file

@ -1,7 +1,3 @@
- name: Retrieve service list
set_fact:
services: '{{ query("netbox.netbox.nb_lookup", "clusters", raw_data=true, api_filter="name="+cluster) | map(attribute="custom_fields.services") | flatten }}'
- name: Set up firewall
template:
dest: /etc/pve/firewall/cluster.fw
@ -9,4 +5,4 @@
mode: 0640
owner: root
group: www-data
when: inventory_hostname == primary