From 4c18f746dca7c7eeb3eaeee40c7a8088814be2d6 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Sat, 25 Nov 2017 11:57:55 -0600 Subject: [PATCH] guard against losing dns lookups when the machine has alreay been configured in which /etc/resolv.conf would contain 127.0.0.1 as the nameserver address with resolvconf in action and /etc/iiab/iiab.env absent --- roles/network/tasks/named.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/network/tasks/named.yml b/roles/network/tasks/named.yml index be351cd23..bfeaa7c16 100644 --- a/roles/network/tasks/named.yml +++ b/roles/network/tasks/named.yml @@ -90,3 +90,6 @@ file: path=/etc/{{ apache_config_dir }}/dns-jail.conf state=absent when: not is_debuntu and not dns_jail_enabled + +- name: Start named after copying files + service: name={{ dns_service }} state=started