mysql_failover.yml
431 Bytes
---
- hosts: nameserver-master
vars:
- confirmation: 'YES'
tasks:
- name: get extra vars
mysql_failover:
az: 'aws'
orig_master_ip: '172.31.10.162'
new_master_ip: '1.3.5.5'
register: new_vars
- name: set fact from customer code
set_fact:
"{{item.key}}": "{{item.value}}"
with_dict:
- "{{ new_vars.response }}"
remote_user: root
roles:
- yoho.dns