February 2018
Intermediate to advanced
200 pages
5h 51m
English
We can use the Route53 module for creating, retrieving, and deleting a Route53 record. In the following task, we have assumed that the DNS zone example.com belongs to us and has been registered with the AWS Route53 service:
- name: Create Route53 record
route53:
state: present
zone: example.com
record: app.example.com
type: A
ttl: 7200
value:
- 1.1.1.1
- 2.2.2.2
- 3.3.3.3
tags:
- recipe2
- name: Get existing Route53 record
route53:
state: get
zone: example.com
record: dns.example.com
type: A
register: record
tags:
- recipe2
- name: Delete existing Route53 record route53: state: ...
Read now
Unlock full access