how did you install the python library purestorage ?
On Fri, Apr 5, 2019 at 6:05 AM Lucas Possamai <[email protected]> wrote: > On Fri, 5 Apr 2019 at 20:57, Kai Stian Olstad < > [email protected]> wrote: > >> This code doesn't prove that's running locally. >> >> modules will only run on localhost if the playbook have "hosts: >> localhost" or "connection: local". >> If not, the module will run on remote host(s) unless you have >> "delegate_to: localhost" on the task(s). >> > > > OKay... so... > As you can see in the task and in the link I've provided, I'm using the Pure > Storage ansible module > <https://docs.ansible.com/ansible/latest/modules/purefa_snap_module.html?highlight=pure%20storage>, > which will connect to the SAN Storage array via a REST API and will execute > the commands I want. > So, I am running the Task locally and then it will connect to the Array > and to its thing. > > However, note that the task doesn't even get connected to the array as it > fails before that. I do not see connection attempts in the Array. > > What I know so far: > > 1. I am running Ansible 2.7 > 2. I have Python 2.7 installed > 3. I have pip 2.7 installed > 4. I have the purestorage python module (purestorage==1.16.0) installed > 5. I am running the task locally. > > Still trying to figure out why I'm getting the error: "msg": "purestorage > sdk is required for this module in volume" > > -- > 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/CAE_gQfXzMbYKa27b%3Ds1FsCwrihvvgX0M0eTD1Enss4%2BWaoQZmA%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CAE_gQfXzMbYKa27b%3Ds1FsCwrihvvgX0M0eTD1Enss4%2BWaoQZmA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Jonathan lozada de la matta AUTOMATION PRACTICE -- 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/CAFYJA%2BL3AJ5JPyLR9BgXoagffOd4vQGjEgGNxopbGN01vZrv%2Bw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
