Make nsd_version an integer
This commit is contained in:
parent
09f720f999
commit
9e4f5822d0
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Default variables, suitable for nsd4 on Debian (jessie or above)
|
# Default variables, suitable for nsd4 on Debian (jessie or above)
|
||||||
|
|
||||||
nsd_version: "nsd"
|
nsd_version: 4
|
||||||
nsd_service_name: "nsd"
|
nsd_service_name: "nsd"
|
||||||
nsd_pkg_name: "nsd"
|
nsd_pkg_name: "nsd"
|
||||||
nsd_control_program: "/usr/sbin/nsd-control"
|
nsd_control_program: "/usr/sbin/nsd-control"
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
- name: rebuild nsd database
|
- name: rebuild nsd database
|
||||||
command: "{{ nsd_control_program }} rebuild"
|
command: "{{ nsd_control_program }} rebuild"
|
||||||
when: nsd_version == 'nsd3'
|
when: nsd_version == 3
|
||||||
|
|
||||||
- name: reload nsd database
|
- name: reload nsd database
|
||||||
command: "{{ nsd_control_program }} reload"
|
command: "{{ nsd_control_program }} reload"
|
||||||
|
Loading…
Reference in New Issue
Block a user