diff --git a/defaults/main.yml b/defaults/main.yml index 868e23d..7e99f8c 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -2,7 +2,7 @@ # Default variables, suitable for nsd4 on Debian (jessie or above) -nsd_version: "nsd" +nsd_version: 4 nsd_service_name: "nsd" nsd_pkg_name: "nsd" nsd_control_program: "/usr/sbin/nsd-control" diff --git a/handlers/main.yml b/handlers/main.yml index ce5866f..b74d069 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -6,7 +6,7 @@ - name: rebuild nsd database command: "{{ nsd_control_program }} rebuild" - when: nsd_version == 'nsd3' + when: nsd_version == 3 - name: reload nsd database command: "{{ nsd_control_program }} reload"