VMware vSphere

 View Only
  • 1.  No python interpreters found for host - ansible

    Posted Mar 06, 2021 08:00 PM

    hi all,

    has anyone seen this error when trying to run commands on an esxi host using ansible

    [root@robs-test ~]# ansible esx -a "date"
    [WARNING]: No python interpreters found for host esx02 (tried ['/usr/bin/python', 'python3.7', 'python3.6', 'python3.5',
    'python2.7', 'python2.6', '/usr/libexec/platform-python', '/usr/bin/python3', 'python'])
    esx02 | CHANGED | rc=0 >>
    Fri Mar 5 20:56:12 UTC 2021

    but the thing is it still connects and retrieves the data

    thanks,

    rob



  • 2.  RE: No python interpreters found for host - ansible

    Posted Mar 06, 2021 08:23 PM

    done it

    [esx]
    esx01 ansible_host=ip_addr
    esx02 ansible_host=ip_addr

    [esx:vars]
    ansible_connection=ssh
    ansible_user=root
    ansible_ssh_pass=password
    ansible_python_interpreter=/bin/python