forked from infra/ansible
Change updatepolicy.aliases format
This commit is contained in:
parent
267557f068
commit
e3c7c0cc1b
@ -14,8 +14,14 @@
|
|||||||
- name: Update updatepolicy.aliases
|
- name: Update updatepolicy.aliases
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: "/etc/powerdns/updatepolicy.aliases"
|
path: "/etc/powerdns/updatepolicy.aliases"
|
||||||
regexp: '^alias\["{{ inventory_hostname}}\."\]'
|
line: 'alias["{{ inventory_hostname }}."] = {}'
|
||||||
line: 'alias["{{ inventory_hostname }}."] = {"{{ ''.","''.join(acme_san_domains) }}."} '
|
delegate_to: "{{ acme_nsupdate_server }}"
|
||||||
|
|
||||||
|
- name: Update updatepolicy.aliases
|
||||||
|
lineinfile:
|
||||||
|
path: "/etc/powerdns/updatepolicy.aliases"
|
||||||
|
line: 'alias["{{ inventory_hostname }}."]["{{ item }}."] = "{{ item }}."'
|
||||||
|
loop: "{{ acme_san_domains }}"
|
||||||
delegate_to: "{{ acme_nsupdate_server }}"
|
delegate_to: "{{ acme_nsupdate_server }}"
|
||||||
|
|
||||||
- name: Generate nsupdate.key
|
- name: Generate nsupdate.key
|
||||||
|
Loading…
Reference in New Issue
Block a user