base: set the lookup option so that resolv.conf searches /etc/hosts before querying a domain name server; the default is the opposite
This commit is contained in:
parent
f42477c8fb
commit
c7e3b2d9ac
|
@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
* nagios-nrpe: add some information in check_connections_state.sh check
|
||||
* ospf: precise in the readme file that no daemon is configured/activated
|
||||
* logsentry: delete unused default file that we put in /usr/share/scripts
|
||||
* base: set the lookup option so that resolv.conf searches /etc/hosts before querying a domain name server; the default is the opposite
|
||||
|
||||
### Changed
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
# tasks file for evobsd-base
|
||||
- include: resolvconf.yml
|
||||
- include: packages.yml
|
||||
- include: doas.yml
|
||||
- include: dotfiles.yml
|
||||
|
|
11
roles/base/tasks/resolvconf.yml
Normal file
11
roles/base/tasks/resolvconf.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
- name: "Configure resolv.conf"
|
||||
lineinfile:
|
||||
path: /etc/resolv.conf
|
||||
line: "lookup file bind"
|
||||
insertbefore: BOF
|
||||
owner: root
|
||||
group: wheel
|
||||
mode: "0644"
|
||||
tags:
|
||||
- resolvconf
|
Loading…
Reference in a new issue