Fix dhcp client configs for OpenBSD 7.6
This commit is contained in:
parent
4b27e6c316
commit
e617040bfd
2 changed files with 10 additions and 4 deletions
|
@ -25,8 +25,11 @@
|
|||
tasks:
|
||||
- name: Use configured dns servers and domain name
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/dhclient.conf
|
||||
content: "ignore domain-name-servers, domain-name;\n"
|
||||
dest: /etc/dhcpleased.conf
|
||||
content: |
|
||||
interface vio1 {
|
||||
ignore dns
|
||||
}
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
|
|
@ -30,8 +30,11 @@
|
|||
- net.inet6.ip6.forwarding
|
||||
- name: Manually set DNS servers
|
||||
ansible.builtin.copy:
|
||||
dest: /etc/dhclient.conf
|
||||
content: "ignore domain-name-servers, domain-name;\n"
|
||||
dest: /etc/dhcpleased.conf
|
||||
content: |
|
||||
interface vio2 {
|
||||
ignore dns
|
||||
}
|
||||
mode: "0644"
|
||||
owner: root
|
||||
group: "{{ ansible_wheel }}"
|
||||
|
|
Loading…
Add table
Reference in a new issue