From 29e44b27a8a701d000f23777515e0f94ee94da13 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 31 Oct 2019 12:29:10 +0100 Subject: [PATCH] Add a postgresql dependency, if the want a local db server. --- library/roles/powerdns-admin/defaults/main.yml | 1 + library/roles/powerdns-admin/meta/main.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/library/roles/powerdns-admin/defaults/main.yml b/library/roles/powerdns-admin/defaults/main.yml index 7d480d3d..0b1b4fe3 100644 --- a/library/roles/powerdns-admin/defaults/main.yml +++ b/library/roles/powerdns-admin/defaults/main.yml @@ -10,6 +10,7 @@ pdns_admin_opts: '' pdns_admin_loglevel: 'WARN' pdns_admin_logdir: '/var/log/pdnsadmin' pdns_admin_logfile: '{{ pdns_admin_logdir }}/pdnsadmin.log' +pdns_admin_local_pgsql: False pdns_admin_prereqs: - git diff --git a/library/roles/powerdns-admin/meta/main.yml b/library/roles/powerdns-admin/meta/main.yml index a60de378..74e9bc8b 100644 --- a/library/roles/powerdns-admin/meta/main.yml +++ b/library/roles/powerdns-admin/meta/main.yml @@ -1,4 +1,5 @@ --- dependencies: + - { role: '../../library/roles/nginx', when: pdns_admin_local_pgsql | bool } - role: '../../library/roles/nginx' - role: '../../library/roles/node_js'