diff --git a/tasks/ironic_inspector_pre_install.yml b/tasks/ironic_inspector_pre_install.yml index a0fb7fc5..8c2f651c 100644 --- a/tasks/ironic_inspector_pre_install.yml +++ b/tasks/ironic_inspector_pre_install.yml @@ -17,6 +17,7 @@ template: src: "dhcpd.conf.j2" dest: "/etc/dhcp/dhcpd.conf" + when: ironic_inspector_dhcp_type == "isc_dhcp" notify: - Restart isc-dhcp-server @@ -27,6 +28,7 @@ owner: "{{ ironic_system_user_name }}" group: "{{ ironic_system_group_name }}" mode: "0640" + when: ironic_inspector_dhcp_type == "dnsmasq" notify: - Restart ironic-inspector-dnsmasq