Coder Social home page Coder Social logo

Comments (4)

anupamaloke avatar anupamaloke commented on August 16, 2024

@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.

vchevakula avatar vchevakula commented on August 16, 2024

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.

anupamaloke avatar anupamaloke commented on August 16, 2024

@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.

rajeevarakkal avatar rajeevarakkal commented on August 16, 2024

@vchevakula Closing this issue since there is no update since long

from dellemc-openmanage-ansible-modules.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.