Added private networking support

Mostly copied from Ansible pull request #7223