netapp - na_cdot_user_role

43 views
Skip to first unread message

e-on mytube

unread,
Feb 23, 2017, 11:57:13 AM2/23/17
to Ansible Project
Hi,

i try to set role on my storagebox by using module:


but run in following issue:

ERROR! 'na_cdot_user_role' is not a valid attribute for a Play


The error appears to have been in '/ansible/ansible/roles/storage.roles/tasks/storage_set_role.yml': line 2, column 3, but may
be elsewhere
in the file depending on the exact syntax problem.


The offending line appears to be:


---
- name: Create User Role
 
^ here


###################################################

Ansible info:
ansible 2.2.1.0
  config file = /etc/ansible/ansible.cfg
  configured module search path = Default w/o overrides

sudo pip show netapp-lib
Name: netapp-lib
Version: 2016.10.14
Summary: netapp-lib is required for OpenStack deployments to interact with NetApp storage systems.
Home-page: UNKNOWN
Author: NetApp, Inc.
License: Proprietary::NetApp
Location: /usr/lib/python2.7/site-packages
Requires: xmltodict


#task.yml
---
- name: Create User Role
  na_cdot_user_role
:
      state
: present
      name
: adminteam
      command_directory_name
: security
      access_level
: all
      vserver
: vserver1
      hostname
: "{{ netapp_hostname }}"
      username
: "{{ netapp_username }}"
      password
: "{{ netapp_password }}"







Any idea?


BR, e-on

Kai Stian Olstad

unread,
Feb 23, 2017, 12:22:44 PM2/23/17
to ansible...@googlegroups.com
On 23. feb. 2017 10:45, 'e-on mytube' via Ansible Project wrote:
> Hi,
>
> i try to set role on my storagebox by using module:
>
> https://docs.ansible.com/ansible/na_cdot_user_role_module.html
>
> but run in following issue:
>
> ERROR! 'na_cdot_user_role' is not a valid attribute for a Play

<snip>

> Ansible info:
> ansible 2.2.1.0
> config file = /etc/ansible/ansible.cfg
> configured module search path = Default w/o overrides

On the page you link to it says
"New in version 2.3."

You are using 2.2.1.0 and 2.3 is not released yet.


--
Kai Stian Olstad

Amrutha p v

unread,
Jul 24, 2017, 4:45:31 AM7/24/17
to Ansible Project, ansible-pr...@olstad.com
Hi,

I am facing the same issue. I have the latest version of ansible (2.3) and the netapp-lib (latest version) installed.

Amrutha p v

unread,
Jul 24, 2017, 6:27:43 AM7/24/17
to Ansible Project, ansible-pr...@olstad.com
Its solved!

Dick Visser

unread,
Jul 24, 2017, 1:46:38 PM7/24/17
to ansible...@googlegroups.com
On 24 July 2017 at 12:27, Amrutha p v <amruth...@gmail.com> wrote:
> Its solved!

That's great news!
To help others out there - how exactly did you solve it?




--
Dick Visser
Sr. System & Network Engineer
GÉANT

Want to join us? We're hiring: https://www.geant.org/jobs
Reply all
Reply to author
Forward
0 new messages