From ba32827f3bd6abcbd9fa4b3dc79d3a65f4f216c7 Mon Sep 17 00:00:00 2001 From: Prasad Katti Date: Mon, 18 Dec 2017 23:13:15 +0530 Subject: [PATCH] Cleanup route53_zone examples (#34000) --- .../modules/cloud/amazon/route53_zone.py | 26 +++++-------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/route53_zone.py b/lib/ansible/modules/cloud/amazon/route53_zone.py index b751784ba2e..00e46b5eb21 100644 --- a/lib/ansible/modules/cloud/amazon/route53_zone.py +++ b/lib/ansible/modules/cloud/amazon/route53_zone.py @@ -34,7 +34,7 @@ options: description: - whether or not the zone should exist or not required: false - default: true + default: present choices: [ "present", "absent" ] vpc_id: description: @@ -65,36 +65,22 @@ author: "Christopher Troup (@minichate)" ''' EXAMPLES = ''' -# create a public zone -- route53_zone: +- name: create a public zone + route53_zone: zone: example.com - state: present comment: this is an example -# delete a public zone -- route53_zone: +- name: delete a public zone + route53_zone: zone: example.com state: absent -- name: private zone for devel +- name: create a private zone route53_zone: zone: devel.example.com - state: present vpc_id: '{{ myvpc_id }}' vpc_region: us-west-2 comment: developer domain - -# more complex example -- name: register output after creating zone in parameterized region - route53_zone: - vpc_id: '{{ vpc.vpc_id }}' - vpc_region: '{{ ec2_region }}' - zone: '{{ vpc_dns_zone }}' - state: present - register: zone_out - -- debug: - var: zone_out ''' RETURN = '''