diff --git a/changelogs/fragments/ipaddr.yaml b/changelogs/fragments/ipaddr.yaml new file mode 100644 index 00000000..26923f3f --- /dev/null +++ b/changelogs/fragments/ipaddr.yaml @@ -0,0 +1,3 @@ +--- +trivial: + - Adds netaddr as requirements in ansible.utils.ipaddr. diff --git a/docs/ansible.utils.ipaddr_filter.rst b/docs/ansible.utils.ipaddr_filter.rst index 169caf6f..4c1f07f6 100644 --- a/docs/ansible.utils.ipaddr_filter.rst +++ b/docs/ansible.utils.ipaddr_filter.rst @@ -23,6 +23,12 @@ Synopsis +Requirements +------------ +The below requirements are needed on the local Ansible controller node that executes this filter. + +- netaddr>=0.10.1 + Parameters ---------- diff --git a/plugins/filter/ipaddr.py b/plugins/filter/ipaddr.py index 29dc1891..a61c087c 100644 --- a/plugins/filter/ipaddr.py +++ b/plugins/filter/ipaddr.py @@ -76,6 +76,8 @@ class mac_linux(netaddr.mac_unix): type: str description: type of filter. example ipaddr, ipv4, ipv6, ipwrap notes: + requirements: + - netaddr>=0.10.1 """ EXAMPLES = r"""