...
|
...
|
@@ -14,10 +14,20 @@ |
|
|
timestamp: "{{ lookup('pipe','date +%Y-%m-%d-%H-%M-%S') }}"
|
|
|
zone_serical: "{{ ansible_date_time.epoch }}"
|
|
|
|
|
|
- name: sync bind9 zone files
|
|
|
- name: sync bind9 zone files with center zone1
|
|
|
template:
|
|
|
src: qcloud.zone.j2
|
|
|
dest: /Data/named/qcloud.zone
|
|
|
backup: yes
|
|
|
notify:
|
|
|
- reload bind |
|
|
\ No newline at end of file |
|
|
- reload bind
|
|
|
when: center == 'zone1'
|
|
|
|
|
|
- name: sync bind9 zone files with center zone2
|
|
|
template:
|
|
|
src: qcloud_az2.zone.j2
|
|
|
dest: /Data/named/qcloud.zone
|
|
|
backup: yes
|
|
|
notify:
|
|
|
- reload bind
|
|
|
when: center == 'zone2' |
...
|
...
|
|