dell / dellemc-openmanage-ansible-modules

Dell OpenManage Ansible Modules
GNU General Public License v3.0
335 stars 163 forks source link

Run idrac_server_config_profile on playbook failed in error "Dell EMC OMSDK library is requried for this module" #395

Closed dafoyiming closed 2 years ago

dafoyiming commented 2 years ago
Question

Run idrac_server_config_profile on playbook failed in error "Dell EMC OMSDK library is requried for this module"

Details

I am sure I can import OMSDK anywhere in my virtual envirionment Version: omreivers 1.2.456 omsdk 1.2.456

Error : The full traceback is: File "/tmp/ansible_idrac_server _config _profile_pavload_sompb54u/ansibleidrac. server-.config_profile_payload.zip/ansiblecollections/dellemc/openmanage/plugins/modules/idrac server_config _profile.py", line 478, in main File /tmp/ansible-drac-server-confie-profle-payload.sompbS4u/ansible-dracserver.confe-.profile-pavload.zip/ansible-collections/dellemc/openmanage/plueins/module-utls/dellemc-drac.py',line 47,in init raise ImportError("Dell EMC OMSDK library is required for this module")

Playbook: hosts: r640 connection: local name: Export BIOS scP in XML format for use with Clones gather facts: False tasks: name: Export Server Configuration Profile to a local path idrac_server_config_profile: idrac_ip: "{{ baseuri }}" idrac_user: "{{ username }}" idrac_password: "{{ password }}" sharename: "/home/zhanvim priy/test/scp files/" share_user: "share user_name" share_password: "share user password" job_wait: False export_use: Clone export_format: XML scp_components: ALL

dafoyiming commented 2 years ago

Have some typos in question description due to I OCR the error messages from picture.

dafoyiming commented 2 years ago

fixed with append extra parameter -e 'ansible_python_interpreter=~/venv/bin/python'