adding example for route53_facts using start_record_name

this example shows two things not shown here already->
- dynamically looking up hosted zone id using the route53_zone module (vs knowing the ID we can use the name)
- showing an example of start_record_name which takes an entire record, not just a partial name
pull/49844/head
ipvsean 6 years ago committed by ansibot
parent bd1e566c8f
commit 2a67ff1a75

@ -177,6 +177,21 @@ EXAMPLES = '''
next_marker: "{{ first_facts.NextMarker }}"
max_items: 1
when: "{{ 'NextMarker' in first_facts }}"
- name: retrieve host entries starting with host1.workshop.test.io
block:
- name: grab zone id
route53_zone:
zone: "test.io"
register: AWSINFO
- name: GRAB ROUTE53 INFORMATION
route53_facts:
type: A
query: record_sets
hosted_zone_id: "{{AWSINFO.zone_id}}"
start_record_name: "host1.workshop.test.io"
register: RECORDS
'''
try:
import boto

Loading…
Cancel
Save