On Sat, 6 Apr 2019 at 16:16, Lucas Possamai <[email protected]> wrote:

> On Sat, 6 Apr 2019 at 11:32, Jonathan Lozada De La Matta <
> [email protected]> wrote:
>
>> did you use a virtualenv? did you u do it as root? did you do it as your
>> user? did you do pip install --user ?
>>
>
> No. All I did was to run, as my user (not root), pip install purestorage.
> Nothing else.
>
>

So.. doing some tests.

Playbook is as follow:

---
- name: Oracle Database Snapshots
  hosts: dbservers
  remote_user: oracle
  sudo: true
  sudo_user: root
  vars_files:
    - vars/arrays.yaml
    - vars/database.yaml

  tasks:

# Take Snapshot of database volumes
    - include: tasks/take_snapshot.yaml
      run_once: yes


tasks/take_snapshot.yaml:

---
# Perform PURE Flasharray Database snapshots
- name: perform PURE volume snapshot
  purefa_snap:
    name: db2-prod-oracledb
    suffix: snap
    fa_url: "{{ fa_url }}"
    api_token: "{{ apiToken }}"


Now, if I replace "*hosts: dbservers*" for "*hosts: localhost*", it works.
So that means it was indeed trying to connect to "*dbservers*" and then
running the commands.
I did check the dbservers host and I can see purestorage sdk is also
installed there.

oracle[DR]@db2:~$pip freeze |grep purestorage
DEPRECATION: Python 2.7 will reach the end of its life on January 1st,
2020. Please upgrade your Python as Python 2.7 won't be maintained after
that date. A future version of pip will drop support for Python 2.7.
purestorage==1.16.0


How can I fix the missing purestorage sdk error?  It is an RHEL 6.7.
Thanks!

-- 
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_gQfV80kqd%2BY6WoJ3XBTp9qeg-aykYEqFSMNhiCET0RqEa%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to