From 5f710afb3db30df2b7bbd5a38a9c0b5956cf41f0 Mon Sep 17 00:00:00 2001 From: The Magician Date: Wed, 6 Feb 2019 15:14:44 -0800 Subject: [PATCH] Ansible: better field names on gcp_compute_instance (#185) /cc @rambleraptor --- plugins/modules/gcp_compute_instance.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/modules/gcp_compute_instance.py b/plugins/modules/gcp_compute_instance.py index bd27a9d..78ca48f 100644 --- a/plugins/modules/gcp_compute_instance.py +++ b/plugins/modules/gcp_compute_instance.py @@ -54,6 +54,8 @@ options: routes. required: false type: bool + aliases: + - ip_forward disks: description: - An array of disks that are associated with the instances that are created from @@ -137,6 +139,9 @@ options: create a disk with one of the public operating system images, specify the image by its family name. required: false + aliases: + - image + - image_family source_image_encryption_key: description: - The customer-supplied encryption key of the source image. Required if @@ -889,7 +894,7 @@ def main(): module = GcpModule( argument_spec=dict( state=dict(default='present', choices=['present', 'absent'], type='str'), - can_ip_forward=dict(type='bool'), + can_ip_forward=dict(type='bool', aliases=['ip_forward']), disks=dict( type='list', elements='dict', @@ -905,7 +910,7 @@ def main(): disk_name=dict(type='str'), disk_size_gb=dict(type='int'), disk_type=dict(type='str'), - source_image=dict(type='str'), + source_image=dict(type='str', aliases=['image', 'image_family']), source_image_encryption_key=dict(type='dict', options=dict(raw_key=dict(type='str'), sha256=dict(type='str'))), ), ),