Initial commit
This commit is contained in:
commit
c2a6dfb887
5 changed files with 96 additions and 0 deletions
24
tasks/main.yml
Normal file
24
tasks/main.yml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue