Authored by chunhua.zhang

add

... ... @@ -43,7 +43,8 @@ db:
# java inner load balancer
java:
inner_lb: 10.66.4.112
rabbit:
rabbit:
common_local: 10.66.4.112
order_local: 10.66.4.234
... ...
---
# defaults file for yoho.dns
zone_serical: 1
timestamp: 2018
\ No newline at end of file
... ...
---
# tasks file for yoho.
- name: get current time
set_fact:
timestamp: "{{ lookup('pipe','date +%Y-%m-%d-%H-%M-%S') }}"
zone_serial: "{{ lookup('pipe','date +%Y%m%d%H%M%S') }}"
- name: sync bind9 zone files
template:
... ...
$TTL 5 ; 5s default TTL
; Zone: yohoops.org.
; Generated by ansible, at localhost
; Generated by ansible, at {{ timestamp }}
@ IN SOA ns1.yohoops.org. root.ns.yohoops.org. (
1223333 ; Serial
{{ zone_serical }} ; Serial
1M ; Refresh
15M ; Retry
1W ; Expire
... ... @@ -147,16 +147,12 @@ zk05 IN A {{ zookeeper[5] }
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.order.local IN A {{ rabbit.order_local }}
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
rabbit.common.local IN A {{ rabbit.common_local }}
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
... ...