Fix key filename on master ns

The keys should have a 'K' at the start.

Change-Id: I873aed771448005877eb1fdf5dc739521bf39889
This commit is contained in:
James E. Blair 2018-11-14 10:39:57 +01:00
parent 4fb2143f3c
commit 3bb6841b33

View File

@ -49,13 +49,13 @@
- name: Install dnssec public keys - name: Install dnssec public keys
loop: "{{ dnssec_keys | dict2items }}" loop: "{{ dnssec_keys | dict2items }}"
copy: copy:
dest: "/etc/bind/keys/{{ item.value.zone }}/{{ item.value.zone }}.+008+{{ item.key }}.key" dest: "/etc/bind/keys/{{ item.value.zone }}/K{{ item.value.zone }}.+008+{{ item.key }}.key"
content: "{{ item.value.public }}" content: "{{ item.value.public }}"
- name: Install dnssec private keys - name: Install dnssec private keys
no_log: true no_log: true
loop: "{{ dnssec_keys | dict2items }}" loop: "{{ dnssec_keys | dict2items }}"
copy: copy:
dest: "/etc/bind/keys/{{ item.value.zone }}/{{ item.value.zone }}.+008+{{ item.key }}.private" dest: "/etc/bind/keys/{{ item.value.zone }}/K{{ item.value.zone }}.+008+{{ item.key }}.private"
content: "{{ item.value.private }}" content: "{{ item.value.private }}"
- name: Install bind config - name: Install bind config
template: template: