The ipaddr filter was moved to ansible.utils sometime after 2.18.
Set up network interfaces and SSH for Windows hosts. We can’t gather facts before we know which remote shell to use, so first run a win_ping to determine if a given host is running Windows.