infini_host module

32 views
Skip to first unread message

Bruno Cochofel

unread,
Mar 4, 2019, 12:36:51 PM3/4/19
to Ansible Project
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:

---
- hosts: all
  tasks:
    - name: Create new host
      infini_host:
        name: xpto.example.com
        system: myinfinidat.localdomain.com

What am I doing wrong?

Thanks,
Bruno

Jean-Yves LENHOF

unread,
Mar 4, 2019, 1:11:01 PM3/4/19
to ansible...@googlegroups.com
As written in documentation, this module requires an sdk :

infinisdk


Regards,

Bruno Cochofel

unread,
Mar 4, 2019, 4:20:39 PM3/4/19
to ansible...@googlegroups.com
Hi, 

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

Thanks,
Bruno

--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/rqyov4TKazk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/dea64fa1-b7ef-125c-af23-b54fc6045e6c%40lenhof.eu.org.
For more options, visit https://groups.google.com/d/optout.

Bruno Cochofel

unread,
Mar 5, 2019, 6:02:59 AM3/5/19
to Ansible Project
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.
To unsubscribe from this group and all its topics, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.

Bruno Cochofel

unread,
Mar 9, 2019, 6:10:41 AM3/9/19
to Ansible Project
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

Kai Stian Olstad

unread,
Mar 9, 2019, 8:28:06 AM3/9/19
to ansible...@googlegroups.com
On 09.03.2019 12:10, Bruno Cochofel wrote:
> 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.

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.


--
Kai Stian Olstad

Bruno Cochofel

unread,
Mar 9, 2019, 10:23:27 AM3/9/19
to ansible...@googlegroups.com
Hi,

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

Bruno

--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/rqyov4TKazk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/30fdee00-b038-46fd-e14b-566c4fbe66d4%40olstad.com.
Reply all
Reply to author
Forward
0 new messages