From 3497f67d2875ba2353878b307d7f536078cacc4f Mon Sep 17 00:00:00 2001 From: whiter Date: Thu, 30 Jul 2015 11:37:01 +1000 Subject: [PATCH] Updated doco for vpc_subnet --- .../extras/cloud/amazon/ec2_vpc_subnet.py | 38 ++++++++++--------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_subnet.py b/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_subnet.py index 1510eb9975..ec729fe363 100644 --- a/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_subnet.py +++ b/lib/ansible/modules/extras/cloud/amazon/ec2_vpc_subnet.py @@ -22,30 +22,34 @@ description: version_added: "2.0" author: Robert Estelle, @erydo options: - vpc_id: - description: - - VPC ID of the VPC in which to create the subnet. - required: false - default: null - resource_tags: - description: - - A dictionary array of resource tags of the form: { tag1: value1, tag2: value2 }. This module identifies a subnet by CIDR and will update the subnet's tags to match. Tags not in this list will be ignored. - required: false - default: null - cidr: - description: - - The CIDR block for the subnet. E.g. 10.0.0.0/16. Only required when state=present." - required: false az: description: - "The availability zone for the subnet. Only required when state=present." required: false + default: null + cidr: + description: + - "The CIDR block for the subnet. E.g. 10.0.0.0/16. Only required when state=present." + required: false + default: null + tags: + description: + - "A dictionary array of resource tags of the form: { tag1: value1, tag2: value2 }. This module identifies a subnet by CIDR and will update the subnet's tags to match. Tags not in this list will be ignored." + required: false + default: null + aliases: [ 'resource_tags' ] state: description: - - Create or remove the subnet - required: true + - "Create or remove the subnet" + required: false default: present choices: [ 'present', 'absent' ] + vpc_id: + description: + - "VPC ID of the VPC in which to create the subnet." + required: false + default: null + extends_documentation_fragment: aws ''' @@ -248,4 +252,4 @@ from ansible.module_utils.ec2 import * # noqa if __name__ == '__main__': main() - \ No newline at end of file +