mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Add an example to delete Route53 alias record set (#3834)
This commit is contained in:
parent
c5fbda395b
commit
be6ce922a6
1 changed files with 22 additions and 3 deletions
|
@ -236,6 +236,25 @@ EXAMPLES = '''
|
|||
alias=True
|
||||
alias_hosted_zone_id="{{ elb_zone_id }}"
|
||||
|
||||
# Retrieve the details for elb.foo.com
|
||||
- route53:
|
||||
command: get
|
||||
zone: foo.com
|
||||
record: elb.foo.com
|
||||
type: A
|
||||
register: rec
|
||||
|
||||
# Delete an alias record using the results from the get command
|
||||
- route53:
|
||||
command: delete
|
||||
zone: foo.com
|
||||
record: "{{ rec.set.record }}"
|
||||
ttl: "{{ rec.set.ttl }}"
|
||||
type: "{{ rec.set.type }}"
|
||||
value: "{{ rec.set.value }}"
|
||||
alias: True
|
||||
alias_hosted_zone_id: "{{ rec.set.alias_hosted_zone_id }}"
|
||||
|
||||
# Add an alias record that points to an Amazon ELB and evaluates it health:
|
||||
- route53:
|
||||
command=create
|
||||
|
|
Loading…
Reference in a new issue