fix(security): fixed an issue leading to an invalid nftables.conf file being generated using provisioners ip addresses
This commit is contained in:
parent
9914c7921a
commit
068a2e2790
4 changed files with 15 additions and 2 deletions
|
@ -30,7 +30,8 @@
|
|||
|
||||
- name: set firewall templates facts
|
||||
ansible.builtin.set_fact:
|
||||
security_firewall_supervisors_ip4: '{{ provisioner_facts.controllers_list.values() }}'
|
||||
security_firewall_supervisors_ip4: '{{ provisioner_facts.controllers_list.values() | list | ansible.utils.ipv4 }}'
|
||||
security_firewall_supervisors_ip6: '{{ provisioner_facts.controllers_list.values() | list | ansible.utils.ipv6 }}'
|
||||
security_firewall_dns4_servers: "{{ hostvars[inventory_hostname]['global_dns_{}_dns4'.format(global_dns_type)] | default(ansible_facts.dns.nameservers | ansible.utils.ipv4, true) }}"
|
||||
security_firewall_dns6_servers: "{{ hostvars[inventory_hostname]['global_dns_{}_dns6'.format(global_dns_type)] | default(ansible_facts.dns.nameservers | ansible.utils.ipv6, true) }}"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue