# infini\_host module

**URL:** <https://forum.ansible.com/t/infini-host-module/29820>\
**Category:** Ansible Project\
**Created:** [March 4, 2019, 5:36pm UTC](https://forum.ansible.com/t/infini-host-module/29820 "2019-03-04T17:36:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bruno\_Cochofel](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@Bruno\_Cochofel](https://forum.ansible.com/u/Bruno_Cochofel)\
**Post date:** [March 4, 2019, 5:36pm UTC](https://forum.ansible.com/t/infini-host-module/29820/1 "2019-03-04T17:36:51Z")

</div>

Hi,

I have infinidat storage and I’m trying to use the ansible modules, but I’m stucked on the connection.  
I cannot figure out from the documentation how to connect to the storage. I have the following:

---

<div class="post-metadata">

**Author:** ![jean-yves](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@jean-yves](https://forum.ansible.com/u/jean-yves)\
**Post date:** [March 4, 2019, 6:10pm UTC](https://forum.ansible.com/t/infini-host-module/29820/2 "2019-03-04T18:10:53Z")

</div>

As written in documentation, this module requires an sdk :

infinisdk

Regards,

---

<div class="post-metadata">

**Author:** ![Bruno\_Cochofel](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@Bruno\_Cochofel](https://forum.ansible.com/u/Bruno_Cochofel)\
**Post date:** [March 4, 2019, 9:20pm UTC](https://forum.ansible.com/t/infini-host-module/29820/3 "2019-03-04T21:20:18Z")

</div>

Hi,

I have that sdk installed and also have the file for the credentials, still I cannot connect.

Thanks,  
Bruno

---

<div class="post-metadata">

**Author:** ![Bruno\_Cochofel](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@Bruno\_Cochofel](https://forum.ansible.com/u/Bruno_Cochofel)\
**Post date:** [March 5, 2019, 11:02am UTC](https://forum.ansible.com/t/infini-host-module/29820/4 "2019-03-05T11:02:59Z")

</div>

Hi,

I have created the file ~/.infinidat/infinisdk.ini with authentication credentials, I’ve also tried to use the export INFINIBOX\_USER and INFINIBOX\_PASSWORD but I’m still getting:

fatal: [xpto-server]: UNREACHABLE! =\> {“changed”: false, “msg”: “Failed to connect to the host via ssh: Permission denied (publickey).\r\n”, “unreachable”: true}

If I use python shell I can connect.

---

<div class="post-metadata">

**Author:** ![Bruno\_Cochofel](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@Bruno\_Cochofel](https://forum.ansible.com/u/Bruno_Cochofel)\
**Post date:** [March 9, 2019, 11:10am UTC](https://forum.ansible.com/t/infini-host-module/29820/5 "2019-03-09T11:10:40Z")

</div>

Hi,

Is there a way to configure what type of connection to infinibox ansible uses? Is it supposed to be SSH? I cannot find anything about this on the docs.

Thanks,  
Bruno

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [March 9, 2019, 1:27pm UTC](https://forum.ansible.com/t/infini-host-module/29820/6 "2019-03-09T13:27:56Z")

</div>

Why don't you just test disabling ssh by setting connection: local or delegate\_to: localhost since is doesn't look like anyone here uses infinibox and can help you.

---

<div class="post-metadata">

**Author:** ![Bruno\_Cochofel](https://avatars.discourse-cdn.com/v4/letter/b/4da419/32.png) [@Bruno\_Cochofel](https://forum.ansible.com/u/Bruno_Cochofel)\
**Post date:** [March 9, 2019, 3:23pm UTC](https://forum.ansible.com/t/infini-host-module/29820/7 "2019-03-09T15:23:00Z")

</div>

Hi,

Thanks Kai, that worked. Didn’t know that I could do that.

Bruno
