Skip to content

Commit

Permalink
Ensure the pdns user can write in the db dir
Browse files Browse the repository at this point in the history
  • Loading branch information
pieterlexis committed Apr 16, 2020
1 parent ca61573 commit 03cdbaa
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tasks/database-sqlite3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,19 @@
owner: "root"
group: "root"
state: directory
mode: 0755
mode: 0750
with_items: "{{ pdns_sqlite_databases_locations }}"
when: _pdns_running_version is version_compare('4.2.0', '<')

- name: Ensure that the directories containing the PowerDNS SQLite databases exist
file:
name: "{{ item | dirname }}"
owner: "{{ pdns_user }}"
group: "{{ pdns_group }}"
state: directory
mode: 0750
with_items: "{{ pdns_sqlite_databases_locations }}"
when: _pdns_running_version is version_compare('4.2.0', '>=')

- block:

Expand Down

0 comments on commit 03cdbaa

Please sign in to comment.