Showing
1 changed file
with
1 additions
and
15 deletions
@@ -8,29 +8,15 @@ | @@ -8,29 +8,15 @@ | ||
8 | msg: "user do not type DNS" | 8 | msg: "user do not type DNS" |
9 | when: confirmation != 'DNS' | 9 | when: confirmation != 'DNS' |
10 | 10 | ||
11 | -- name: "Show center" | ||
12 | - debug: msg="Center:{{ center }}" | ||
13 | - | ||
14 | - | ||
15 | - name: get current time | 11 | - name: get current time |
16 | set_fact: | 12 | set_fact: |
17 | timestamp: "{{ lookup('pipe','date +%Y-%m-%d-%H-%M-%S') }}" | 13 | timestamp: "{{ lookup('pipe','date +%Y-%m-%d-%H-%M-%S') }}" |
18 | zone_serical: "{{ ansible_date_time.epoch }}" | 14 | zone_serical: "{{ ansible_date_time.epoch }}" |
19 | 15 | ||
20 | -- name: --ZONE1-- Sync bind9 zone files | 16 | +- name: Sync bind9 zone files |
21 | template: | 17 | template: |
22 | src: qcloud.zone.j2 | 18 | src: qcloud.zone.j2 |
23 | dest: /Data/named/qcloud.zone | 19 | dest: /Data/named/qcloud.zone |
24 | backup: yes | 20 | backup: yes |
25 | notify: | 21 | notify: |
26 | - reload bind | 22 | - reload bind |
27 | - when: center == "zone1" | ||
28 | - | ||
29 | -- name: --ZONE2-- Sync bind9 zone files | ||
30 | - template: | ||
31 | - src: qcloud_az2.zone.j2 | ||
32 | - dest: /Data/named/qcloud.zone | ||
33 | - backup: yes | ||
34 | - notify: | ||
35 | - - reload bind | ||
36 | - when: center == "zone2" |
-
Please register or login to post a comment