I am looking for guidance to see if there is a way with ansible to 
communicate with the CLI on a Storage System. Currently there is a module 
for the HPE 3PAR storage system that interacts via the API but I have found 
some limitations to the API that can be accomplished via running CLI 
commands on the Storage System. I know there were Network CLI modules 
created for similar scenarios with configuring network devices.

I can SSH into the Storage System and run commands via the 3PAR OS just 
fine but Ansible can't connect to it. The 3PAR OS doesn't drop you into a 
traditional shell similar to network devices which i believe is the issue.

Currently when I run Ansible against the Storage System I get the following 
error:

fatal: [192.168.1.50]: UNREACHABLE! => {"changed": false, "msg": 
"Authentication 
or permission failure. In some cases, you may have been able to 
authenticate and did not have permissions on the target directory. Consider 
changing the remote tmp path in ansible.cfg to a path rooted in \"/tmp\". 
Failed command was: ( umask 77 && mkdir -p \"` echo 
~/.ansible/tmp/ansible-tmp-1537924411.79-161739042519359 `\" && echo 
ansible-tmp-1537924411.79-161739042519359=\"` echo 
~/.ansible/tmp/ansible-tmp-1537924411.79-161739042519359 `\" ), exited with 
result 1", "unreachable": true}


I am wondering if there is a way use Ansible to authenticate and execute a 
generic command payload. I have tried the shell, raw, and command modules 
but each with the similar error as above.

ssh [email protected] "showwsapi"



Hopefully this makes sense.

Any help or guidance would be appreciated.



-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0ccd59ea-9a7d-4c5f-926c-f8dd9070445f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to