Commit 6bf7b64e authored by nanahira's avatar nanahira

fix dhclient in clude

parent cc08c261
...@@ -51,6 +51,23 @@ ...@@ -51,6 +51,23 @@
when: ansible_distribution == 'Ubuntu' when: ansible_distribution == 'Ubuntu'
- name: resolv - name: resolv
include_tasks: ./tasks/resolve.yaml include_tasks: ./tasks/resolve.yaml
- 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_host_name() {
return 0
}
dest: /etc/dhcp/dhclient-enter-hooks.d/nextgen-router
mode: 0755
- name: iptables-gateways blank - name: iptables-gateways blank
file: file:
name: '{{ansible_user_dir}}/iptables-gateways' name: '{{ansible_user_dir}}/iptables-gateways'
......
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