|
@@ -56,7 +56,7 @@
|
|
|
lineinfile:
|
|
|
path: /etc/dhcp/dhcpd.conf
|
|
|
insertafter: "^# BEGIN ANSIBLE MANAGED DHCP CONFIG$"
|
|
|
- regexp: "hardware ethernet {{ node.mac | regex_replace('^01-', '') | regex_replace('-', ':') }}"
|
|
|
+ regexp: "(?i)hardware ethernet {{ node.mac | regex_replace('^01-', '') | regex_replace('-', ':') }}"
|
|
|
line: 'host {{ node.name }}-{{ node.cluster }} { hardware ethernet {{ node.mac | regex_replace("^01-", "") | regex_replace("-", ":") }}; fixed-address {{ node.ip }}; option host-name "{{ node.name }}.{{ node.cluster }}.example.com."; }'
|
|
|
state: present
|
|
|
notify: restart_dhcpd
|