yoho.dns.mysql_read_to_master.yml
671 Bytes
---
# change mysql read to master node.
# task no.1 : change the dns resolv
# task no.2: reload the cobar server
- hosts: nameserver-master
vars_prompt:
- name: "confirmation"
prompt: "Sync and reload dns server. Please Enter DNS to continue."
private: no
remote_user: root
vars:
db_cms_read: 10.66.0.99
db_passport_read: 10.66.0.105
db_shops_read: 10.66.0.213
db_order_read: 10.66.0.170
db_uic_read: 10.66.6.136
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
roles:
- yoho.dns
tasks:
- include: cobar.reload.yml