Authored by chunhua.zhang

添加刷新dns

---
dc: qcloud-az1
# database info: using to generate bind9 dns config file. very important !!
db.cms.write: 10.66.0.99
db.cms.read: 10.66.6.7
db.passport.write: 10.66.0.105
db.passport.read: 10.66.6.8
db.shops.write: 10.66.0.213
db.shops.read: 10.66.6.10
db.order.write: 10.66.0.170
db.order.read: 10.66.6.9
db.message.write: 10.67.2.103
db.message.read: 10.66.106.5
db.uic.write: 10.66.6.136
db.uic.read: 10.66.106.12
db.ordersplit.1.write: 10.66.0.57
db.ordersplit.2.write: 10.66.0.81
db.ordersplit.3.write: 10.66.0.98
db.ordersplit.4.write: 10.66.0.121
db.ordersplit.1.read: 10.66.0.57
db.ordersplit.2.read: 10.66.0.81
db.ordersplit.3.read: 10.66.0.98
db.ordersplit.4.read: 10.66.0.121
db.search: 10.66.6.6
db.mongo: 10.66.6.19
# java inner load balancer
java.inner.lb: 10.66.4.112
#rabbitmq
java.rabbit.common.local: 10.66.4.112
java.rabbit.order.local: 10.66.4.234
\ No newline at end of file
... ...
Role Name
=========
A brief description of the role goes here.
Requirements
------------
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
Role Variables
--------------
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
Dependencies
------------
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
Example Playbook
----------------
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: username.rolename, x: 42 }
License
-------
BSD
Author Information
------------------
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
... ...
---
# defaults file for yoho.dns
... ...
---
# handlers file for yoho.dns
\ No newline at end of file
... ...
galaxy_info:
author: your name
description: your description
company: your company (optional)
# If the issue tracker for your role is not on github, uncomment the
# next line and provide a value
# issue_tracker_url: http://example.com/issue/tracker
# Some suggested licenses:
# - BSD (default)
# - MIT
# - GPLv2
# - GPLv3
# - Apache
# - CC-BY
license: license (GPLv2, CC-BY, etc)
min_ansible_version: 1.2
# If this a Container Enabled role, provide the minimum Ansible Container version.
# min_ansible_container_version:
# Optionally specify the branch Galaxy will use when accessing the GitHub
# repo for this role. During role install, if no tags are available,
# Galaxy will use this branch. During import Galaxy will access files on
# this branch. If Travis integration is configured, only notifications for this
# branch will be accepted. Otherwise, in all cases, the repo's default branch
# (usually master) will be used.
#github_branch:
#
# platforms is a list of platforms, and each platform has a name and a list of versions.
#
# platforms:
# - name: Fedora
# versions:
# - all
# - 25
# - name: SomePlatform
# versions:
# - all
# - 1.0
# - 7
# - 99.99
galaxy_tags: []
# List tags for your role here, one per line. A tag is a keyword that describes
# and categorizes the role. Users find roles by searching for tags. Be sure to
# remove the '[]' above, if you add tags to this list.
#
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
# Maximum 20 tags per role.
dependencies: []
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
# if you add dependencies to this list.
\ No newline at end of file
... ...
---
# tasks file for yoho.dns
\ No newline at end of file
... ...
$TTL 5 ; 5s default TTL
; Zone: yohoops.org.
; Generated by ansible, at {{ time }}
@ IN SOA ns1.yohoops.org. root.ns.yohoops.org. (
{{ zone_serial }} ; Serial
1M ; Refresh
15M ; Retry
1W ; Expire
1M ; Negative Response TTL
)
; DNS Servers
IN NS ns.yohoops.org.
; Other A and CNAME records, etc
;ops
influxdb IN A 10.66.4.25
influxdb-event IN A 10.66.4.25
influxdb-order IN A 10.66.4.25
monitor.redis IN A 10.66.4.25
zabbix.master IN A 10.66.0.191
rsyslog IN A 10.66.0.36
config.server IN A 10.66.80.2
zabbix IN A 10.66.0.191
kafkacluster IN A 10.66.80.4
kafkacluster IN A 10.66.80.17
kafkacluster IN A 10.66.80.14
ops.kafka IN A 10.66.80.17
;database
write.cms IN A {{ db.cms.write }}
read.cms IN A {{ db.cms.read }}
write.uic IN A {{ db.uic.write }}
read.uic IN A {{ db.uic.read }}
write.passport IN A {{ db.passport.write }}
read.passport IN A {{ db.passport.read }}
write.orders IN A {{ db.order.write }}
read.orders IN A {{ db.order.read }}
write.shops IN A {{ db.shops.write }}
read.shops IN A {{ db.shops.read }}
write.yohood IN A {{ db.order.write }}
read.yohood IN A {{ db.order.read }}
write.message IN A {{ db.message.write }}
read.message IN A {{ db.message.read }}
read2.message IN A {{ db.message.read }}
write1.orders IN A {{ db.ordersplit.1.write }}
write2.orders IN A {{ db.ordersplit.2.write }}
write3.orders IN A {{ db.ordersplit.3.write }}
write4.orders IN A {{ db.ordersplit.4.write }}
read1.orders IN A {{ db.ordersplit.1.read }}
read2.orders IN A {{ db.ordersplit.2.read }}
read3.orders IN A {{ db.ordersplit.3.read }}
read4.orders IN A {{ db.ordersplit.4.read }}
write1.promotion IN A {{ db.ordersplit.1.write }}
write2.promotion IN A {{ db.ordersplit.2.write }}
write3.promotion IN A {{ db.ordersplit.3.write }}
write4.promotion IN A {{ db.ordersplit.4.write }}
read1.promotion IN A {{ db.ordersplit.1.read }}
read2.promotion IN A {{ db.ordersplit.2.read }}
read3.promotion IN A {{ db.ordersplit.3.read }}
read4.promotion IN A {{ db.ordersplit.4.read }}
write.search IN A {{ db.search }}
read.search IN A {{ db.search }}
db.global IN A {{ db.search }}
brower.mongodb IN A {{ db.mongo }}
write.erp IN A 10.66.50.99
read1.erp IN A 10.66.50.64
read2.erp IN A 10.66.50.64
read3.erp IN A 10.67.2.194
write.social IN A 10.66.251.12
read.social IN A 10.66.251.12
write.mars IN A 10.66.251.15
read.mars IN A 10.66.251.15
write.yhcms IN A 10.66.251.12
read.yhcms IN A 10.66.251.12
write.global IN A 10.66.251.12
read.global IN A 10.66.251.12
write.yhUnion IN A 10.66.6.131
read.yhUnion IN A 10.66.106.14
qq.union.dbs.slave IN A 10.66.106.14
write.yhLogs IN A 10.66.6.49
qq.logs.dbs.slave IN A 10.66.6.49
yohologs IN A 10.66.6.49
write.store IN A 10.66.6.183
read.store IN A 10.66.6.183
qq.dbs.slave IN A 10.67.2.2
dbs.slave IN A 10.67.2.2
bigdata.db.union IN A 10.67.2.46
read.bigdata IN A 10.67.2.144
db.crm IN A 10.66.6.93
gp.db IN A 10.67.2.47
;java inner load balancer
uic IN A {{ java.inner.lb }}
api.yoho IN A {{ java.inner.lb }}
service.yoho IN A {{ java.inner.lb }}
search IN A {{ java.inner.lb }}
message-controller IN A {{ java.inner.lb }}
single IN A {{ java.inner.lb }}
gateway.erp IN A {{ java.inner.lb }}
erp.yoho IN A {{ java.inner.lb }}
;redis server
bigdata.redis IN A 10.67.3.135
qqbigdata.redis IN A 10.67.3.135
qqbigdata.redis.push IN A 10.67.3.135
bigdata.redis.push.aws IN A 10.67.3.135
bigdata.redis.push IN A 10.67.3.135
redis.nginx IN A 10.66.4.80
redis.global IN A 10.66.4.161
redis.java IN A 10.66.4.161
redis.gateway IN A 10.66.4.200
redis.bigdata IN A 10.66.4.156
redis.web IN A 10.66.105.49
search.redis IN A 10.66.4.249
redis.push IN A 10.66.5.182
bigdata.rtrec.redis IN A 10.67.1.139
web.redis IN A 10.66.1.192
push.redis IN A 10.66.5.182
redis.crm IN A 10.66.4.143
union.redis IN A 10.66.4.127
;hosts
gateway IN A 10.66.0.4
zk01 IN A 10.66.4.3
zk02 IN A 10.66.4.4
zk03 IN A 10.66.4.5
zk04 IN A 10.66.4.8
zk05 IN A 10.66.4.9
;java rabbitmq
rabbit.order.dc1 IN A 10.66.4.234
rabbit.order.dc2 IN A 10.66.105.13
rabbit.order.dc3 IN A 10.66.200.14
rabbit.order.local IN A 10.66.4.234
rabbit.common.dc1 IN A 10.66.4.112
rabbit.common.dc2 IN A 10.66.104.6
rabbit.common.dc3 IN A 10.66.202.9
rabbit.common.local IN A 10.66.4.112
rabbitmq-crm IN A 10.66.70.92
rabbitmq01.qq IN A 10.66.4.6
rabbitmq02.qq IN A 10.66.4.7
rabbitmq-common-qq IN A 10.66.4.112
rabbitmq-common IN A 10.66.4.112
;cobar
cobar2 IN A 10.66.4.20
cobar1 IN A 10.66.4.20
cobar3 IN A 10.66.4.21
cobar4 IN A 10.66.4.21
cobar.promotion1 IN A 10.66.50.27
cobar.promotion2 IN A 10.66.50.27
;erp
erp.zk01.qq IN A 10.66.50.20
erp.zk02.qq IN A 10.66.50.21
erp.zk03.qq IN A 10.66.50.22
erp.redis01.qq IN A 10.66.50.20
erp.redis02.qq IN A 10.66.50.21
erp.redis03.qq IN A 10.66.50.22
rabbitmq-erp-gray01 IN A 10.66.50.112
rabbitmq-erp-gray02 IN A 10.66.50.144
rabbitmq-erp01 IN A 10.66.50.87
rabbitmq-erp02 IN A 10.66.50.100
erp.influxdb IN A 10.66.50.10
zk.pro.platform IN A 10.66.50.140
zk.gray.platform IN A 10.66.50.107
redis.platform IN A 10.66.50.132
apigray.platform IN A 10.66.50.107
api.platform IN A 10.66.50.140
serve.erp IN A 10.66.50.7
;other
ns IN A 10.66.4.17
extendstore IN A 10.66.0.118
api.crm IN A 10.66.0.133
api.store IN A 10.66.0.133
risk IN A 10.67.254.22
shop IN A 10.67.254.22
platform.shareOrder IN A 10.67.90.13
photo.search IN A 10.66.0.97
adminstore IN A 10.66.0.133
influxdblog.web IN A 10.66.0.139
web.zookeeper IN A 10.66.1.192
bigdata.api.crm IN A 10.67.7.2
bigdata.ftp IN A 10.67.7.2
;global
global.redis IN A 10.66.5.187
global.mem.01 IN A 10.66.5.187
global.mem.02 IN A 10.66.5.17
;media
media.rabbit IN A 10.66.251.8
search-mars IN A 10.66.251.4
... ...
---
- hosts: localhost
remote_user: root
roles:
- yoho.dns
\ No newline at end of file
... ...
---
# vars file for yoho.dns
\ No newline at end of file
... ...