Make nsd_version an integer

This commit is contained in:
Baptiste Jonglez 2017-09-01 12:35:44 +02:00
parent 09f720f999
commit 9e4f5822d0
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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"