Authored by root

Fix bug

... ... @@ -8,29 +8,15 @@
msg: "user do not type DNS"
when: confirmation != 'DNS'
- name: "Show center"
debug: msg="Center:{{ center }}"
- name: get current time
set_fact:
timestamp: "{{ lookup('pipe','date +%Y-%m-%d-%H-%M-%S') }}"
zone_serical: "{{ ansible_date_time.epoch }}"
- name: --ZONE1-- Sync bind9 zone files
- name: Sync bind9 zone files
template:
src: qcloud.zone.j2
dest: /Data/named/qcloud.zone
backup: yes
notify:
- reload bind
when: center == "zone1"
- name: --ZONE2-- Sync bind9 zone files
template:
src: qcloud_az2.zone.j2
dest: /Data/named/qcloud.zone
backup: yes
notify:
- reload bind
when: center == "zone2"
... ...