Browse Source

Merge branch 'wip-bind-resolv' into 'master'

bind: write /etc/resolv.conf for immediate benefits

See merge request main/securedrop-club!98
keep-around/3e0400fddc1d96281bed9154491b7fc6e94b1930
Loïc Dachary 4 years ago
parent
commit
6d0c2d0c0a
  1. 5
      molecule/bind/roles/dhclient/tasks/main.yml
  2. 3
      molecule/bind/roles/dhclient/templates/resolv.conf.j2

5
molecule/bind/roles/dhclient/tasks/main.yml

@ -13,3 +13,8 @@
val: "{{dns_domain}}"
- key: "domain-search"
val: "{{dns_search}}"
- name: write /etc/resolv.conf once so it does not have to wait until the next dhclient update
template:
src: resolv.conf.j2
dest: /etc/resolv.conf

3
molecule/bind/roles/dhclient/templates/resolv.conf.j2

@ -0,0 +1,3 @@
# created from molecule/bind/roles/dhclient/templates/resolv.conf.j2
search {{dns_search}}
nameserver {{ hostvars['bind-host']['ansible_host'] }}
Loading…
Cancel
Save