projects
/
ansible.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
journalwatch: ssh, postfix
[ansible.git]
/
roles
/
postfix
/
tasks
/
unbound.yml
diff --git
a/roles/postfix/tasks/unbound.yml
b/roles/postfix/tasks/unbound.yml
index 2a91a80186a3e0887c9d8a238ffe3d7e7f2a7567..34fbe81241d5fa813ea45c8394ee2b16fd1f7f34 100644
(file)
--- a/
roles/postfix/tasks/unbound.yml
+++ b/
roles/postfix/tasks/unbound.yml
@@
-11,6
+11,15
@@
# not a handler to make sure it succeeds before we go touch system DNS
when: unbound_config.changed
service: name=unbound state=restarted enabled=yes
# not a handler to make sure it succeeds before we go touch system DNS
when: unbound_config.changed
service: name=unbound state=restarted enabled=yes
+# use as system DNS
+- name: detect DHCP client
+ stat: path=/etc/dhcp/dhclient.conf
+ register: dhclient
+- name: configure DHCP
+ when: dhclient.stat.exists == True
+ copy:
+ dest: /etc/dhcp/dhclient.conf
+ src: files/unbound/dhclient.conf
- name: configure system DNS
copy:
dest: /etc/resolv.conf
- name: configure system DNS
copy:
dest: /etc/resolv.conf