Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Commit

Permalink
Cleanup route53_zone examples (ansible#34000)
Browse files Browse the repository at this point in the history
  • Loading branch information
prasadkatti authored and ansibot committed Dec 18, 2017
1 parent b34d150 commit ba32827
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions lib/ansible/modules/cloud/amazon/route53_zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
description:
- whether or not the zone should exist or not
required: false
default: true
default: present
choices: [ "present", "absent" ]
vpc_id:
description:
Expand Down Expand Up @@ -65,36 +65,22 @@
'''

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 = '''
Expand Down

0 comments on commit ba32827

Please sign in to comment.