- Ansible 2 Cloud Automation Cookbook
- Aditya Patawari Vikas Aggarwal
- 134字
- 2021-06-24 18:43:41
How to do it...
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:
- To create a Route53 record, do the following:
- 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
- To get an existing Route53 record, do the following:
- name: Get existing Route53 record route53: state: get zone: example.com record: dns.example.com type: A register: record tags: - recipe2
- To delete a Route53 record, do the following:
- name: Delete existing Route53 record route53: state: absent zone: example.com record: "{{ record.set.record }}" ttl: "{{ record.set.ttl }}" type: "{{ record.set.type }}" value: "{{ record.set.value }}" tags: - recipe2
推薦閱讀
- 大數(shù)據(jù)技術(shù)與應(yīng)用基礎(chǔ)
- 基于C語言的程序設(shè)計
- Managing Mission:Critical Domains and DNS
- 西門子S7-200 SMART PLC從入門到精通
- Getting Started with Containerization
- 21天學(xué)通ASP.NET
- 基于ARM 32位高速嵌入式微控制器
- 樂高機(jī)器人—槍械武器庫
- 機(jī)器人人工智能
- INSTANT Puppet 3 Starter
- 計算機(jī)組成與操作系統(tǒng)
- 人工智能:智能人機(jī)交互
- 樂高創(chuàng)意機(jī)器人教程(中級 上冊 10~16歲) (青少年iCAN+創(chuàng)新創(chuàng)意實(shí)踐指導(dǎo)叢書)
- Moodle 2.0 Course Conversion(Second Edition)
- Oracle 11g基礎(chǔ)與提高