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