orphan: |
---|
Note
This module is part of the morpheus.core collection (version 0.7.1).
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 morpheus.core
.
To use it in a playbook, specify: morpheus.core.role_info
.
.. rst-class:: ansible-version-added
New in morpheus.core 0.7.0
- Retrieves list of Morpheus Roles.
.. tabularcolumns:: \X{1}{3}\X{2}{3}
Parameter | Comments |
---|---|
Filter roles that have diverged. .. rst-class:: ansible-option-line |
|
Return specific object by id. |
|
Filter Multi-Tenant Roles. .. rst-class:: ansible-option-line |
|
Filter by name. |
|
Treat the name parameter as a regular expression. .. rst-class:: ansible-option-line |
|
Filter by Type of Role. :ansval:`account` and :ansval:`tenant` are the same. .. rst-class:: ansible-option-line |
.. tabularcolumns:: \X{2}{10}\X{3}{10}\X{5}{10}
Attribute | Support | Description |
---|---|---|
:ansible-attribute-support-label:`Support: \ ` :ansible-attribute-support-na:`N/A` Not Required, Module does not make changes. |
Can run in check_mode and return changed status prediction without modifying target |
|
Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode |
||
Target OS/families that can be operated against |
- name: Get all Roles
morpheus.core.role_info:
- name: Get Role by specific Id
morpheus.core.role_info:
id: 120
- name: Get all Account/Tenant Roles
morpheus.core.role_info:
role_type: tenant
- name: Get all multitenant Roles
morpheus.core.role_info:
multitenant: true
Common return values are documented :ref:`here <common_return_values>`, the following are the fields unique to this module:
.. tabularcolumns:: \X{1}{3}\X{2}{3}
Key | Description |
---|---|
List of matching roles. .. rst-class:: ansible-option-line :ansible-option-returned-bold:`Returned:` always .. rst-class:: ansible-option-line .. rst-class:: ansible-option-sample :ansible-option-sample-bold:`Sample:` :ansible-rv-sample-value:`{"roles": [{"authority": "Support", "date\_created": "2022-01-01T00:00:01Z", "default\_persona": null, "description": "Support Role", "diverged": false, "id": 10, "last\_updated": "2022-01-01T00:00:01Z", "multitenant": true, "multitenant\_locked": true, "name": "Support", "owner": {"id": 1, "name": "Owner"}, "owner\_id": 1, "parent\_role\_id": null, "role\_type": "user", "scope": "Account"}]}` |
- James Riach (@McGlovin1337)
.. ansible-links:: - title: "Repository (Sources)" url: "https://www.github.com/gomorpheus/ansible-collection-morpheus-core" external: true