Authored by chunhua.zhang

add

... ... @@ -2,7 +2,7 @@
# tasks file for yoho.
- name: get local time
set_fact: time = "{{lookup('pipe','date \"+%Y-%m-%d %H:%M\"')}}"
set_fact: time = "{{lookup('pipe','date \"+%Y-%m-%d \"')}}"
- name: sync bind9 zone files
template:
... ...
$TTL 5 ; 5s default TTL
; Zone: yohoops.org.
; Generated by ansible, at {{ time }}
; Generated by ansible, at localhost
@ IN SOA ns1.yohoops.org. root.ns.yohoops.org. (
{{ zone_serial }} ; Serial
1223333 ; Serial
1M ; Refresh
15M ; Retry
1W ; Expire
... ...