Comments (4)
@vchevakula, OpenManage Ansible modules use iDRAC REST APIs, so the modules need to be locally on the ansible controller. You can do that by using either of the following methods :
- Using playbook header
- host: all
connection: local
- Use
delegate_to
in your playbook
task:
- name: Get hardware inventory
dellemc_get_system_inventory:
idrac_ip: "{{ host }}"
idrac_user: "{{ user }}"
idrac_pwd: "{{ pwd }}"
delegate_to: localhost
- Using Ansible command-line
ansible-playbook --connection=local 127.0.0.1 playbook.yml
- Using inventory
[all]
192.168.10.10 host='192.168.10.10' user='root' pwd='calvin' ansible_connection=local
- Using Ansible configuration file ansible.cfg
[defaults]
transport = local
I would suggest using the first or second option in your playbook.
from dellemc-openmanage-ansible-modules.
Hello @anupamaloke,
Thanks for your input. I tried all the options and I'm getting this below error. Please let me know if I'm missing anything. I just did follow the documentation
(dell-scripts) vijayaCS:dell-scripts vchevakula$ ansible-playbook --connection=local playbook.yml -i inventory
PLAY [all] ********************************************************************************************************************************************************************************
TASK [Get hardware inventory] *************************************************************************************************************************************************************
fatal: [192.168.192.126]: FAILED! => {"msg": "module (dellemc_get_system_inventory) is missing interpreter line"}
PLAY RECAP ********************************************************************************************************************************************************************************
192.168.10.10 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
(dell-scripts) vijayaCS:dell-scripts vchevakula$
from dellemc-openmanage-ansible-modules.
@vchevakula, I am guessing that the issue is due to some ansible module path issue. Can you post the output of the "ansible-playbook -vvvv --connection=local playbook.yml -i inventory"?
from dellemc-openmanage-ansible-modules.
@vchevakula Closing this issue since there is no update since long
from dellemc-openmanage-ansible-modules.
Related Issues (20)
- [FEATURE]: force firmware overwrite in idrac_firmware module HOT 3
- [BUG]: idrac_reset fails when idrac is InUse state HOT 4
- [BUG]: Python 3.12 Support HOT 2
- [QUESTION]: Does the module idrac_certificates module works only one host at a time ? HOT 2
- [QUESTION]: Galaxy.yml in Signed Archive HOT 2
- [QUESTION]:dellemc.openmanage is slow with an iDRAC8 vs. iDRAC9 HOT 2
- [QUESTION]: Timezone attribute different on iDRAC8 vs iDRAC9
- [BUG]: unable to set IscsiDev1ConXVlanID HOT 1
- Set syslog server address and altering config HOT 2
- [FEATURE]: Allow SNMP v3 Passphrase configuration through the `idrac_user` module
- [BUG]: Virtual media support in idrac_boot doesn't work for iDrac8
- [FEATURE]: Add aliases to the hostname, username and password arguments in the idrac_session module
- Error "HTTP Error 404: Not Found" when Configuring DNS Settings on iDRAC Using Ansible HOT 6
- [BUG]: Incompatible with pysnmp >6.2.2 HOT 5
- SecureErase and BOSS HOT 1
- [QUESTION]: SecureErase issue erasing multiple drives HOT 1
- generate multiple random password
- [FEATURE]: Improve Role Variable Naming for Enhanced Clarity and Scalability
- [BUG]: redfish_storage_volume job returns 404. HOT 2
- [FEATURE]: redfish_firmware wait until remote download finished and update scheduled HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dellemc-openmanage-ansible-modules.