diff --git a/lib/ansible/modules/cloud/amazon/route53_facts.py b/lib/ansible/modules/cloud/amazon/route53_facts.py index ae07ff8eec..4b3d907543 100644 --- a/lib/ansible/modules/cloud/amazon/route53_facts.py +++ b/lib/ansible/modules/cloud/amazon/route53_facts.py @@ -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