diff --git a/playbooks/roles/bifrost-ironic-install/templates/dnsmasq.conf.j2 b/playbooks/roles/bifrost-ironic-install/templates/dnsmasq.conf.j2 index ebb033059..ea6db820a 100644 --- a/playbooks/roles/bifrost-ironic-install/templates/dnsmasq.conf.j2 +++ b/playbooks/roles/bifrost-ironic-install/templates/dnsmasq.conf.j2 @@ -7,7 +7,7 @@ # Listen on this specific port instead of the standard DNS port # (53). Setting this to zero completely disables DNS function, # leaving only DHCP and/or TFTP. -{% if disable_dnsmasq_dns %} +{% if disable_dnsmasq_dns | bool == true %} port=0 {% else %} port=53 @@ -63,7 +63,7 @@ domain={{ domain }} # service. {% if testing | bool == true %} dhcp-range=192.168.122.2,192.168.122.254,12h -{% elif inventory_dhcp %} +{% elif inventory_dhcp | bool == true %} dhcp-range={{dhcp_pool_start}},{{dhcp_pool_end}},static,{{dhcp_static_mask}},{{dhcp_lease_time}} {% else %} dhcp-range={{dhcp_pool_start}},{{dhcp_pool_end}},{{dhcp_lease_time}}