Skip to content

Commit

Permalink
allow install of custom scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
zerwes committed Feb 23, 2024
1 parent 127971a commit 312ab44
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ pdns_backends:
# 'hybrid': yes
# 'dnssec-db': '{{ pdns_config_dir }}/dnssec.db'

# list of pdns backend scripts to install
pdns_backends_scripts: []

# Administrative credentials to create the PowerDNS Authoritative Server MySQL backend database and user.
pdns_mysql_databases_credentials: {}
# pdns_mysql_databases_credentials:
Expand Down
9 changes: 9 additions & 0 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@
mode: 0640
register: _pdns_configuration

- name: Install configured backend scripts
copy:
src: "{{ item }}"
dest: "{{ pdns_config_dir }}/{{ item }}"
owner: "{{ pdns_file_owner }}"
group: "{{ pdns_file_group }}"
mode: "0750"
with_items: "{{ pdns_backends_scripts }}"

- name: Ensure that the PowerDNS 'include-dir' directory exists
file:
name: "{{ pdns_config['include-dir'] }}"
Expand Down

0 comments on commit 312ab44

Please sign in to comment.