mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-05-14 13:32:07 +00:00
Allow description field to be set with os_server
Adds server description field support to os_server when compute API version >= 2.19 https://review.opendev.org/c/openstack/openstacksdk/+/775513 Story: 2008395 Depends-On: dab55a7 Change-Id: I848c5e489ef9fe071362c79b2c14fb45724cb4f5
This commit is contained in:
@@ -189,6 +189,10 @@ options:
|
|||||||
description:
|
description:
|
||||||
- Availability zone in which to create the server.
|
- Availability zone in which to create the server.
|
||||||
type: str
|
type: str
|
||||||
|
description:
|
||||||
|
description:
|
||||||
|
- Description of the server.
|
||||||
|
type: str
|
||||||
requirements:
|
requirements:
|
||||||
- "python >= 3.6"
|
- "python >= 3.6"
|
||||||
- "openstacksdk"
|
- "openstacksdk"
|
||||||
@@ -505,6 +509,7 @@ class ServerModule(OpenStackModule):
|
|||||||
state=dict(default='present', choices=['absent', 'present']),
|
state=dict(default='present', choices=['absent', 'present']),
|
||||||
delete_fip=dict(default=False, type='bool'),
|
delete_fip=dict(default=False, type='bool'),
|
||||||
reuse_ips=dict(default=True, type='bool'),
|
reuse_ips=dict(default=True, type='bool'),
|
||||||
|
description=dict(default=None, type='str'),
|
||||||
)
|
)
|
||||||
module_kwargs = dict(
|
module_kwargs = dict(
|
||||||
mutually_exclusive=[
|
mutually_exclusive=[
|
||||||
@@ -608,7 +613,8 @@ class ServerModule(OpenStackModule):
|
|||||||
)
|
)
|
||||||
for optional_param in (
|
for optional_param in (
|
||||||
'key_name', 'availability_zone', 'network',
|
'key_name', 'availability_zone', 'network',
|
||||||
'scheduler_hints', 'volume_size', 'volumes'):
|
'scheduler_hints', 'volume_size', 'volumes',
|
||||||
|
'description'):
|
||||||
if self.params[optional_param]:
|
if self.params[optional_param]:
|
||||||
bootkwargs[optional_param] = self.params[optional_param]
|
bootkwargs[optional_param] = self.params[optional_param]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user