Initial commit

This commit is contained in:
nd 2019-09-30 01:46:14 +02:00
commit c2a6dfb887
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
5 changed files with 96 additions and 0 deletions

24
tasks/main.yml Normal file
View file

@ -0,0 +1,24 @@
- name: install powerdns backends
apt:
pkg:
- "pdns-backend-pipe"
- name: create folders
file:
path: "{{ item.path }}"
state: directory
owner: "{{ item.owner|d('pdns') }}"
group: "{{ item.group|d('pdns') }}"
mode: "{{ item.mode|d('0755') }}"
with_items:
- { "path": "/var/lib/powerdns/letsencrypt/" }
- name: copy powerdns letsencrypt handler
template:
dest: /usr/local/bin/pdns.py
src: pdns-letsencrypt.py.j2
owner: root
group: root
mode: 0755
notify:
- restart powerdns