yoho.search_switch_center.yml
627 Bytes
---
# Offline testing...
# dns server reconfigure to match: search traffic switch between AWS and QCLOUD
- hosts: nameserver-master
vars_prompt:
- name: "confirmation"
prompt: "Sync and reload dns server. Please Enter DNS to continue."
private: no
- name: "search_center"
prompt: "Switch to the target cloud center. Please Enter AWS or QCLOUD."
private: no
pre_tasks:
- set_fact:
search_lb: 10.66.4.165
when: (search_center == 'AWS')
- set_fact:
search_lb: 10.66.4.165
when: (search_center == 'QCLOUD')
remote_user: root
roles:
- yoho.dns