dellemc.powerstore.dellemc_powerstore_role (1.3.0) — module

Get details of the roles present on the PowerStore storage system.

| "added in version" 1.3.0 of dellemc.powerstore"

Authors: P Srinivas Rao (@srinivas-rao5) <ansible.team@dell.com>

preview | supported by community

Install collection

Install with ansible-galaxy collection install dellemc.powerstore:==1.3.0


Add to requirements.yml

  collections:
    - name: dellemc.powerstore
      version: 1.3.0

Description

Manage role in PowerStore storage system includes getting the details of a role.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.

- name: Get the details of role by name
  dellemc_powerstore_role:
    array_ip: "{{array_ip}}"
    verifycert: "{{verify_cert}}"
    user: "{{user}}"
    password: "{{password}}"
    role_name: "Administrator"
    state: "present"
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get the details of role by id
  dellemc_powerstore_role:
    array_ip: "{{array_ip}}"
    verifycert: "{{verify_cert}}"
    user: "{{user}}"
    password: "{{password}}"
    role_id: "1"
    state: "present"

Inputs

    
user:
    description:
    - The username of the PowerStore host.
    required: true
    type: str

state:
    choices:
    - absent
    - present
    description:
    - Define whether the role should exist or not.
    - present, indicates that the role should exist on the system.
    - absent, indicates that the role should not exist on the system.
    required: true
    type: str

role_id:
    description:
    - Id of the role.
    type: str

array_ip:
    description:
    - IP or FQDN of the PowerStore management system.
    required: true
    type: str

password:
    description:
    - The password of the PowerStore host.
    required: true
    type: str

role_name:
    description:
    - Name of the role.
    type: str

verifycert:
    choices:
    - true
    - false
    description:
    - Boolean variable to specify whether to validate SSL certificate or not.
    - True - indicates that the SSL certificate should be verified. Set the environment
      variable REQUESTS_CA_BUNDLE to the path of the SSL certificate.
    - False - indicates that the SSL certificate should not be verified.
    required: true
    type: bool

Outputs

changed:
  description: Whether or not the resource has changed.
  returned: always
  sample: true
  type: bool
role_details:
  contains:
    description:
      description: Description of the role.
      type: str
    id:
      description: The ID of the role.
      type: str
    is_built_in:
      description: Indicates whether the role is built-in.
      type: bool
    name:
      description: The name of the role.
      type: str
  description: The role details.
  returned: When role exists.
  type: complex