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.cloud_datastore
.
.. rst-class:: ansible-version-added
New in morpheus.core 0.7.0
- Update the configuration of Cloud Datastores.
.. tabularcolumns:: \X{1}{3}\X{2}{3}
Parameter | Comments |
---|---|
The Id of the Datastore. |
|
Resource permissions for the Datastore. |
|
Allow or disallow access to all groups. .. rst-class:: ansible-option-line |
|
Allow access to all plans. .. rst-class:: ansible-option-line |
|
List of groups that are allowed access to the Datastore. |
|
Id of the group to allow access. |
|
If the Group should have access or not. .. rst-class:: ansible-option-line |
|
List of Plans to allow access. |
|
Id of the Plan to allow access. |
|
If the plan should be present or not. .. rst-class:: ansible-option-line |
|
The active state of the Datastore. .. rst-class:: ansible-option-line |
|
List of Tenant Permissions on the Datastore. |
|
Set the Datastore as the default image store for the specified tenant. .. rst-class:: ansible-option-line |
|
Set the Datastore as the default for the specified tenant. .. rst-class:: ansible-option-line |
|
If the Account should have access or not. .. rst-class:: ansible-option-line |
|
The id of the tenant to add or remove permissions for. |
|
The visibility of the Datastore. .. rst-class:: ansible-option-line |
|
The Id of the Cloud the Datastore belongs to. |
.. 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: Set a Datastore to Active and Public Visibility
morpheus.core.cloud_datastore:
id: 30
cloud_id: 5
state: active
visibility: public
- name: Configure Tenant Access to Datastore
morpheus.core.cloud_datastore:
id: 30
cloud_id: 5
tenant_permissions:
- state: present
tenant_id: 50
default_target: true
- state: present
tenant_id: 51
default_target: true
default_store: true
- state: absent
tenant_id: 2
- name: Configure Group Access and Allow all Price Plans
morpheus.core.cloud_datastore:
id: 35
cloud_id: 6
resource_permissions:
groups:
- state: present
group_id: 7
all_plans: 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 |
---|---|
Information about the datastore after changes. .. 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:`{"datastore": {"active": true, "free\_space": 17589585575936, "id": 100, "name": "vmfs01", "online": true, "resource\_permission": {"all": true, "all\_plans": false, "plans": [], "sites": []}, "tenants": [{"default\_store": false, "default\_target": false, "id": 1, "name": "MasterTenant"}], "type": "vmfs", "visibility": "private", "zone": {"id": 20, "name": "VMware Cloud"}}}` |
- James Riach (@McGlovin1337)
.. ansible-links:: - title: "Repository (Sources)" url: "https://www.github.com/gomorpheus/ansible-collection-morpheus-core" external: true