acme-dnskey-generate: fix naming inconsistencies
This commit is contained in:
parent
275b9a6071
commit
766ece5b10
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
dnskey_file: "/etc/nsupdate.key"
|
acme_dnskey_file: "/etc/acme/nsupdate.key"
|
||||||
dnskey_algorithm: "hmac-sha512"
|
acme_dnskey_algorithm: "hmac-sha512"
|
||||||
dnskey_server: "neon.binary-kitchen.net"
|
acme_dnskey_server: "neon.binary-kitchen.net"
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
- name: Get nsupdate.key again
|
- name: Get nsupdate.key again
|
||||||
shell: "pdnsutil list-tsig-keys | grep '^acme-{{ inventory_hostname }}. {{ acme_dnskey_algorithm }}'"
|
shell: "pdnsutil list-tsig-keys | grep '^acme-{{ inventory_hostname }}. {{ acme_dnskey_algorithm }}'"
|
||||||
register: "pdns_key"
|
register: "pdns_nsupdate_key"
|
||||||
when: "pdns_genkey is defined"
|
when: "pdns_genkey is defined"
|
||||||
changed_when: "False"
|
changed_when: "False"
|
||||||
delegate_to: "{{ acme_dnskey_server }}"
|
delegate_to: "{{ acme_dnskey_server }}"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
key acme-{{ inventory_hostname }}. {
|
key acme-{{ inventory_hostname }}. {
|
||||||
algorithm {{ acme_nsupdate_keyalgo }};
|
algorithm {{ acme_dnskey_algorithm }};
|
||||||
secret "{{ pdns_nsupdate_key.stdout.split(' ')[2] }}";
|
secret "{{ pdns_nsupdate_key.stdout.split(' ')[2] }}";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user