AnsibleJinja2
Assert that value is valid or throw error e.g.
deny {{ ip_addr if ip_addr is ansible.utils.ipv4 | mandatory('Not a valid ipv4 block address') }};
Assert that value is valid or throw error e.g.
deny {{ ip_addr if ip_addr is ansible.utils.ipv4 | mandatory('Not a valid ipv4 block address') }};