From 9a1b5b5e18fce7e348bfec6deab317e52d3d9bdc Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Sun, 13 Nov 2016 09:13:08 +0000 Subject: [PATCH] Use native YAML (#3435) --- .../extras/cloud/amazon/route53_zone.py | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/lib/ansible/modules/extras/cloud/amazon/route53_zone.py b/lib/ansible/modules/extras/cloud/amazon/route53_zone.py index 1f38f0d2b3..698e702622 100644 --- a/lib/ansible/modules/extras/cloud/amazon/route53_zone.py +++ b/lib/ansible/modules/extras/cloud/amazon/route53_zone.py @@ -52,25 +52,34 @@ author: "Christopher Troup (@minichate)" EXAMPLES = ''' # create a public zone -- route53_zone: zone=example.com state=present comment="this is an example" +- route53_zone: + zone: example.com + state: present + comment: this is an example # delete a public zone -- route53_zone: zone=example.com state=absent +- route53_zone: + zone: example.com + state: absent - name: private zone for devel - route53_zone: zone=devel.example.com state=present vpc_id={{myvpc_id}} comment='developer domain' + route53_zone: + zone: devel.example.com + state: present + vpc_id: '{{ myvpc_id }}' + 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 }}" + vpc_id: '{{ vpc.vpc_id }}' + vpc_region: '{{ ec2_region }}' + zone: '{{ vpc_dns_zone }}' state: present register: zone_out -- debug: var=zone_out - +- debug: + var: zone_out ''' RETURN='''