bastion host with python venv

Hi, I need to use a bastion host that only uses Python virtual environments. This bastion is also not technically under Ansible inventory mgmt, but I’m open to having it in the inventory file if needed.

What directives and/or configs are required for this?

I currently have the following:

  • name: ENSURE FILE IS COPIED TO DEVICE
    nxos_file_copy:
    local_file: ./os-images/cisco/nxos/nxos.7.0.3.I5.1.bin
    provider: “{{ nxos_provider }}”
    tags: copy1
    delegate_to: internal.mgmt-server.ntc.com
    remote_user: ntc

Tried adding this to the inventory file too:

[other]
internal.mgmt-server.ntc.com ansible_python_interpreter=‘/home/ntc/.virtualenvs/ansible-2.2/bin/python’

When I run the playbook, it just hangs…any ideas?

Thanks,
Jason

I should also add the the playbook is running with connection set to local.