Authored by root

Modify media dns via playbook

---
dc: media
#database
db_yhcms_write: 10.66.251.12
db_yhcms_read: 10.66.251.12
db_mars_write: 10.66.251.15
db_mars_read: 10.66.251.15
db_social_write: 10.66.251.12
db_social_read: 10.66.251.12
db_yohocn_write: 10.66.251.11
db_yohocn_read: 10.66.251.11
db_ezine_write: 10.66.251.15
db_ezine_read: 10.66.251.15
db_yohood_write: 10.66.251.12
#redis
redis:
bigdata: 10.66.4.156
qqg: 10.66.251.8
media: 10.66.251.8
mars: 10.66.251.8
now: 10.66.251.11
#zookeeper
media_zk: 10.66.251.8
#media
media_rabbitmq: 10.66.251.8
... ...
# inventory file for az2
# auto generated at 2019-01-03 09:19:55
[nameservers]
10.66.251.10
[nameserver-master]
10.66.251.10
... ...
---
- hosts: nameserver-master
vars_prompt:
- name: "confirmation"
prompt: "Sync and reload dns server. Please Enter DNS to continue."
private: no
remote_user: root
roles:
- media.dns
... ...
$TTL 5 ; 5s default TTL
; Zone: yohoops.org.
; Generated by ansible, at {{ timestamp }}
@ IN SOA ns1.yohoops.org. root.ns.yohoops.org. (
{{ zone_serical }} ; Serial
1M ; Refresh
15M ; Retry
1W ; Expire
1M ; Negative Response TTL
)
; DNS Servers
IN NS ns.yohoops.org.
; Other A and CNAME records, etc
{% set A = 'A' %}
{% set CNAME = 'CNAME' %}
ns IN A 192.168.74.11
bigdata.redis IN A {{ redis.bigdata }}
qqg.redis IN A {{ redis.qqg }}
zabbix.master IN A 10.66.0.191
search-mars IN A 10.66.251.4
rsyslog IN A 10.66.0.36
monit.master IN A 172.31.50.139
write.yhcms IN A {{ db_yhcms_write }}
read.yhcms IN A {{ db_yhcms_read }}
write.mars IN A {{ db_mars_write }}
read.mars IN A {{ db_mars_read }}
zk01 IN A {{ media_zk }}
rabbitmq01 IN A {{ media_rabbitmq }}
uic.gray IN A 10.66.101.5
influxdb-event IN A 10.66.251.11
risk IN A 10.67.254.22
write.social IN A {{ db_social_write }}
read.social IN A {{ db_social_read }}
uic IN A 10.66.4.112
rabbitmq-media IN A {{ media_rabbitmq }}
elaticsearch1 IN A 10.66.251.43
elaticsearch2 IN A 10.66.251.45
influxdb IN A 10.66.251.11
influxdb-order IN A 10.66.251.11
rabbitmq-common IN A {{ media_rabbitmq }}
redis.media IN A {{ redis.media }}
zk.media IN A {{ media_zk }}
serve.erp IN A 10.66.50.7
mars.redis IN A {{ redis.mars }}
now.redis IN A {{ redis.now }}
mars.mem IN A 10.66.251.8
now.mem IN A 10.66.251.11
media.zk IN A {{ media_zk }}
media.rabbit IN A {{ media_rabbitmq }}
now.sphinx IN A 10.66.251.11
mars.sphinx IN A 10.66.251.8
read.yohocn IN A {{ db_yohocn_read }}
write.yohocn IN A {{ db_yohocn_write }}
read.ezine IN A {{ db_ezine_read }}
write.ezine IN A {{ db_ezine_write }}
write.yohood IN A {{ db_yohood_write }}
rabbit.common.local IN A 10.66.4.112
... ...