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:
parent
bd1e566c8f
commit
2a67ff1a75
1 changed files with 15 additions and 0 deletions
|
@ -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…
Reference in a new issue