-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vmware_host_iscsi_info: ansible can't run on esxi host with error: No module named 'requests' #1679
Comments
Did you install the requirements? |
I ckecked, and yes, I installed the requirements. |
You don't need to. The modules in this collection do not run on vCenter / ESXi directly. They run on the controller and do everything through the vSphere API instead of ssh'ing to vCenter / ESXi and run there. Could you try
If this doesn't help, maybe this requirement: community.vmware/requirements.txt Line 2 in a205c2a
didn't pull in the requirements of the vSphere Automation SDK for Python automatically and you have to install them manually. I really wish they would provide a proper PyPI package 😩 |
delegate_to in not a valid option for this module: I use:
|
delegate_to isn't a module option, it tells Ansible where to run the task. Look at the indentation ;-)
With or without delegation to localhost? |
Thanks, and sorry for ticket. It's my two space bug. |
SUMMARY
I want to configure iscsi with ansible, but I got the mentioned error.
ISSUE TYPE
COMPONENT NAME
I try with:
with same results.
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
I tested with ubuntu 22.04 clean install and debian 11 clean install
vCenter: Version: 8.0.0, Build: 21216066
Hypervisor: VMware ESXi, 8.0.0, 21203435
STEPS TO REPRODUCE
I run:
ansible-playbook -i inventory.yaml playbook.yaml --ask-pass -vvv
EXPECTED RESULTS
To got the iscsi info.
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: