1
0
forked from infra/ansible

Change updatepolicy.aliases format

This commit is contained in:
Kishi85 2018-10-22 20:30:12 +02:00
parent 267557f068
commit e3c7c0cc1b

View File

@ -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