Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. def get_ansible_host(config, inventory, host, ssh_config=None,
  2. ssh_identity_file=None):
  3. if is_empty_inventory(inventory):
  4. return testinfra.get_host('local://')
  5. hostvars = inventory['_meta'].get('hostvars', {}).get(host, {})
  6. connection = hostvars.get('ansible_connection', 'ssh')
  7. if connection not in ('ssh', 'local', 'docker', 'lxc', 'lxd'):
  8. wrote pytestdebug information to /roles/test-windows-config/molecule/windows/pytestdebug.log
  9. raise NotImplementedError(
  10. > 'unhandled ansible_connection {}'.format(connection))
  11. E NotImplementedError: unhandled ansible_connection winrm
  12.  
  13. /usr/lib/python2.7/site-packages/testinfra/utils/ansible_runner.py:71: NotImplementedError
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement