Hi, There are some great examples on the ipaddr filter's documentation page: https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters_ipaddr.html#playbooks-filters-ipaddr
Yes, one of the things you can do is check to see if an IP belongs to a subnet. On Mon, Jun 15, 2020 at 5:27 PM Ryan Merolle <[email protected]> wrote: > Anyone use this filter function? It seems like a lookup to see if an IP > or subnet is a member of a larger prefix. > > > https://github.com/ansible-collections/ansible.netcommon/blob/master/plugins/filter/ipaddr.py#L665 > > I am just not sure on the proper usage. > > Thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/b9d7048d-2bad-4bdc-a365-9909fb77ba38o%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/b9d7048d-2bad-4bdc-a365-9909fb77ba38o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAPcsqxnBvOyqNoahEGX0diUAQYVv6qabMTxdcUcHwd%2BPGpC30Q%40mail.gmail.com.
