Authored by root

Update

... ... @@ -12,9 +12,14 @@
msg: "user do not type DNS"
when: confirmation != 'DNS'
- name: get current time
set_fact:
timestamp: "{{ lookup('pipe','date +%Y-%m-%d-%H-%M-%S') }}"
zone_serical: "{{ ansible_date_time.epoch }}"
- name: Sync bind9 zone files
copy:
src: media.zone
template:
src: media.zone.j2
dest: /Data/named/aws.zone
backup: yes
... ...
$TTL 5 ; 5s default TTL
; Zone: yohoops.org.
; Generated by i@karlzhou.com, at 2018-07-13 09:50:09 +0800
; Generated by ansible, at {{ timestamp }}
@ IN SOA ns1.yohoops.org. root.ns.yohoops.org. (
1531446609 ; Serial
{{ zone_serical }} ; Serial
1M ; Refresh
15M ; Retry
1W ; Expire
... ...