Commit 41c84279 authored by nanahira's avatar nanahira

fix dhcp leak

parent 916e66cf
...@@ -119,6 +119,26 @@ ...@@ -119,6 +119,26 @@
timeout 300; timeout 300;
dest: /etc/dhcp/dhclient.conf dest: /etc/dhcp/dhclient.conf
- name: remove dhclient resolved hook
become: true
file:
path: /etc/dhcp/dhclient-enter-hooks.d/resolved
state: absent
- name: dhclient hook
become: true
copy:
content: |
make_resolv_conf() {
return 0
}
new_routers() {
return 0
}
new_host_name() {
return 0
}
dest: /etc/dhcp/dhclient-enter-hooks.d/nextgen-router
mode: 0755
- name: pppoe password - name: pppoe password
become: true become: true
blockinfile: blockinfile:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment