You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!!
Sorry. This is my first time on this site and my English is bad
The change below allows you to use ipv4 / ipv6 and unique hostname
ansible-ufw/tasks/config.yml
Change the line:
name: Configuring port/protocol/network rules
ufw: from_ip: "{{ item.from_ip | default(omit) }}"
to from_ip: "{{ item.from_ip | default(omit) if item.from_ip is not defined or item.from_ip|ipaddr else lookup('dig', item.from_ip| default(omit), 'qtype=A') }}"
Hello!!
Sorry. This is my first time on this site and my English is bad
The change below allows you to use ipv4 / ipv6 and unique hostname
ansible-ufw/tasks/config.yml
Change the line:
ufw:
from_ip: "{{ item.from_ip | default(omit) }}"
to
from_ip: "{{ item.from_ip | default(omit) if item.from_ip is not defined or item.from_ip|ipaddr else lookup('dig', item.from_ip| default(omit), 'qtype=A') }}"
The same functionality can be added for "to_ip:"
it is necessary to install: pip install dnspython
https://docs.ansible.com/ansible/latest/plugins/lookup/dig.html
The text was updated successfully, but these errors were encountered: