dns/master: Added configuring configuration environment

dehydrated
Felix Stupp 5 years ago
parent 5627a36949
commit d7991e0bbb
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -9,6 +9,10 @@ database_file: "{{ domain_directory }}/{{ database_file_name }}"
database_signed_file_name: "{{ database_file_name }}.signed"
database_signed_file: "{{ domain_directory }}/{{ database_signed_file_name }}"
domain_environment_directory: "{{ dns_zones_environment_directory }}/{{ domain }}"
domain_environment_link_name: "conf"
domain_environment_link: "{{ domain_environment_directory }}/{{ domain_environment_link_name }}"
dnssec_algorithm: "RSASHA512"
dnssec_key_length: "4096"

@ -11,6 +11,20 @@
- "{{ domain_directory }}"
- "{{ domain_environment_directory }}"
- name: Upload makefile to domain zone configuration environment
template:
src: zone.makefile
dest: "{{ domain_environment_directory }}/makefile"
owner: root
group: root
mode: "u=rw,g=r,o=r"
- name: Create link in domain zone configuration environment
file:
state: link
src: "{{ domain_directory }}"
dest: "{{ domain_environment_link }}"
- name: Determine if keys are generated already
find:
paths: "{{ domain_directory }}"

@ -0,0 +1 @@
dest:={{ domain_environment_link_name }}
Loading…
Cancel
Save