Commit 042ca4a1 authored by nanahira's avatar nanahira

disable domain name server from dhcpcd

parent 48d70d23
...@@ -161,6 +161,18 @@ ...@@ -161,6 +161,18 @@
} }
dest: /etc/dhcp/dhclient-enter-hooks.d/nextgen-router dest: /etc/dhcp/dhclient-enter-hooks.d/nextgen-router
mode: 0755 mode: 0755
- name: check if dhcpcd exists
stat:
path: /etc/dhcpcd.conf
register: dhcpcd_stat
- name: remove dhcpcd.conf DNS stuff
become: true
lineinfile:
path: /etc/dhcpcd.conf
regexp: '^option .*domain_name_servers.*$'
line: '# option domain_name_servers, domain_name, domain_search'
backrefs: true
when: dhcpcd_stat.stat.exists
- 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