from template file,
-A INPUT -i {{ ansible_default_ipv4.interface }} -p tcp --dport {{ ansible_port | default (22) }} -j ACCEPT
outputs
-A INPUT -i eth0 -p tcp --dport -j ACCEPT
setting ansible_port works as normal.
from template file,
-A INPUT -i {{ ansible_default_ipv4.interface }} -p tcp --dport {{ ansible_port | default (22) }} -j ACCEPT
outputs
-A INPUT -i eth0 -p tcp --dport -j ACCEPT
setting ansible_port works as normal.