Files
ansible-role-bind9/tasks/create_dnssec_files.yaml
T
volker.raschekandCopilot d7826d46a1 feat(bind9): support systemd drop-ins
Keep role configuration namespaced and allow hosts to customize systemd startup.

Co-authored-by: Copilot <copilot@github.com>
2026-10-24 16:45:32 +02:00

26 lines
757 B
YAML

---
- name: "Create private DNSSEC: {{ bind9_dnssec_key.origin }}"
ansible.builtin.copy:
dest: "{{ item.private.filename }}"
content: "{{ item.private.content }}"
owner: "{{ bind9_unix_user }}"
group: "{{ bind9_unix_group }}"
mode: "0600"
no_log: true
with_items:
- "{{ bind9_dnssec_key.key_signing_key }}"
- "{{ bind9_dnssec_key.zone_signing_key }}"
- name: "Create public DNSSEC: {{ bind9_dnssec_key.origin }}"
ansible.builtin.copy:
dest: "{{ item.public.filename }}"
content: "{{ item.public.content }}"
owner: "{{ bind9_unix_user }}"
group: "{{ bind9_unix_group }}"
mode: "0644"
no_log: true
with_items:
- "{{ bind9_dnssec_key.key_signing_key }}"
- "{{ bind9_dnssec_key.zone_signing_key }}"