cloudera.cloud.iam_role_info module – Gather information about CDP Public IAM roles
Note
This module is part of the cloudera.cloud collection (version 3.0.0).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install cloudera.cloud
.
To use it in a playbook, specify: cloudera.cloud.iam_role_info
.
New in cloudera.cloud 3.0.0
Synopsis
Gathers information about CDP Public IAM role or roles
Parameters
Parameter |
Comments |
---|---|
A list of Role CRNs or a single role’s CRN. If no CRNs are provided, all Roles are returned. |
Examples
# Note: These examples do not set authentication details.
- name: Retrieve the details about all roles
cloudera.cloud.iam_role_info:
- name: Gather information about a specific role
cloudera.cloud.iam_role_info:
name: crn:iam:us-east-1:cm:role:ClassicClustersCreator
- name: Gather information about specific roles
cloudera.cloud.iam_role_info:
name:
- crn:iam:us-east-1:cm:role:ClassicClustersCreator
- crn:iam:us-east-1:cm:role:DFCatalogAdmin
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Retrieve details about selected IAM Role or Roles Returned: always |
|
The CRN of the IAM role. Returned: always |
|
List of policy rights assigned to the role. Returned: always |