mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Use native YAML (#3435)
This commit is contained in:
parent
f68a45ca9a
commit
9a1b5b5e18
1 changed files with 17 additions and 8 deletions
|
@ -52,25 +52,34 @@ author: "Christopher Troup (@minichate)"
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
# create a public zone
|
# 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
|
# delete a public zone
|
||||||
- route53_zone: zone=example.com state=absent
|
- route53_zone:
|
||||||
|
zone: example.com
|
||||||
|
state: absent
|
||||||
|
|
||||||
- name: private zone for devel
|
- 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
|
# more complex example
|
||||||
- name: register output after creating zone in parameterized region
|
- name: register output after creating zone in parameterized region
|
||||||
route53_zone:
|
route53_zone:
|
||||||
vpc_id: "{{ vpc.vpc_id }}"
|
vpc_id: '{{ vpc.vpc_id }}'
|
||||||
vpc_region: "{{ ec2_region }}"
|
vpc_region: '{{ ec2_region }}'
|
||||||
zone: "{{ vpc_dns_zone }}"
|
zone: '{{ vpc_dns_zone }}'
|
||||||
state: present
|
state: present
|
||||||
register: zone_out
|
register: zone_out
|
||||||
|
|
||||||
- debug: var=zone_out
|
- debug:
|
||||||
|
var: zone_out
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN='''
|
RETURN='''
|
||||||
|
|
Loading…
Reference in a new issue