1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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
This commit is contained in:
ipvsean 2018-12-03 17:25:40 -05:00 committed by ansibot
parent bd1e566c8f
commit 2a67ff1a75

View file

@ -177,6 +177,21 @@ EXAMPLES = '''
next_marker: "{{ first_facts.NextMarker }}" next_marker: "{{ first_facts.NextMarker }}"
max_items: 1 max_items: 1
when: "{{ 'NextMarker' in first_facts }}" 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: try:
import boto import boto