added examples to route53_zone

fixes #1061
This commit is contained in:
Brian Coca 2015-12-23 12:00:36 -05:00
parent 2850c7acb8
commit 6efa406b6f

View file

@ -52,6 +52,29 @@ extends_documentation_fragment:
author: "Christopher Troup (@minichate)" author: "Christopher Troup (@minichate)"
''' '''
EXAMPLES = '''
# create a public zone
- route53_zone: zone=example.com state=present comment="this is an example"
# delete a public zone
- route53_zone: zone=example.com state=absent
- name: private zone for devel
route53_zome: 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 }}"
state: present
register: zone_out
- debug: var=zone_out
'''
import time import time
try: try: