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.tenant
.
.. rst-class:: ansible-version-added
New in morpheus.core 0.7.0
- Create, Update and Remove Tenants.
.. tabularcolumns:: \X{1}{3}\X{2}{3}
.. tabularcolumns:: \X{2}{10}\X{3}{10}\X{5}{10}
Attribute | Support | Description |
---|---|---|
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: Create / Update Tenant
morpheus.core.tenant:
name: Test Tenant
description: Testing Tenant
role: 4
subdomain: test
currency: GBP
- name: Remove Tenant
morpheus.core.tenant:
state: absent
name: Test Tenant
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 |
---|---|
Details of the Tenant state. .. 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:`{"tenant": {"account\_name": null, "account\_number": null, "active": true, "currency": "GBP", "customer\_number": null, "date\_created": "2024-01-01T00:00:01Z", "description": "Testing Tenant", "external\_id": null, "id": 30, "last\_updated": "2024-01-01T00:00:01Z", "master": false, "name": "Test Tenant", "role": {"authority": "Customer Base Role", "description": null, "id": 4, "name": "Customer Base Role"}, "stats": {"instance\_count": 0, "user\_count": 0}, "subdomain": "test"}}` |
- James Riach (@McGlovin1337)
.. ansible-links:: - title: "Repository (Sources)" url: "https://www.github.com/gomorpheus/ansible-collection-morpheus-core" external: true