network: Don't use static resolv.conf for OpenBSD
This commit is contained in:
parent
a1db16b329
commit
fa7402a8eb
2 changed files with 0 additions and 15 deletions
|
@ -1,12 +1,3 @@
|
||||||
---
|
---
|
||||||
- name: Include OS spcific tasks
|
- name: Include OS spcific tasks
|
||||||
ansible.builtin.include_tasks: "{{ ansible_os_family }}.yml"
|
ansible.builtin.include_tasks: "{{ ansible_os_family }}.yml"
|
||||||
|
|
||||||
- name: Create resolv.conf
|
|
||||||
ansible.builtin.template:
|
|
||||||
src: resolv.conf.j2
|
|
||||||
dest: /etc/resolv.conf
|
|
||||||
mode: "0644"
|
|
||||||
owner: root
|
|
||||||
group: "{{ ansible_wheel }}"
|
|
||||||
when: network_dns_servers is defined
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
{% if network_dns_search is defined %}
|
|
||||||
search {{ network_dns_search|join(' ') }}
|
|
||||||
{% endif %}
|
|
||||||
{% for addr in network_dns_servers %}
|
|
||||||
nameserver {{ addr }}
|
|
||||||
{% endfor %}
|
|
Loading…
Add table
Reference in a new issue