ansible/roles/network/tasks/dns-file.yml

24 lines
588 B
YAML
Raw Normal View History

2020-11-29 00:12:15 +00:00
---
- name: create build directory
file:
path: build/dns
state: directory
- name: Create db.lan
# become: yes
template:
src: etc/bind/db.lan.j2
dest: build/dns/db.lan
vars:
network: "{{ lan }}"
serial: "{{ ansible_date_time.year }}{{ ansible_date_time.month }}{{ ansible_date_time.day }}02"
2021-02-23 18:37:52 +00:00
- name: Create db.lan
# become: yes
template:
src: etc/bind/db.reverse.j2
dest: build/dns/db.{{ lan.network_reverse }}
vars:
network: "{{ lan }}"
serial: "{{ ansible_date_time.year }}{{ ansible_date_time.month }}{{ ansible_date_time.day }}02"