Corrected resolver checking for DNS settings.

This commit is contained in:
Emiliano Vavassori 2016-04-28 10:05:24 +02:00
parent 08532e58d7
commit 059b60e80c
1 changed files with 2 additions and 2 deletions

View File

@ -24,11 +24,11 @@
# DNS
# Already preconfigured before (roles/nethcfg/tasks/base.yml)
# reforcing the resolver addresses to the ones configured
- name: Checking DNS configuration
shell: /sbin/e-smith/db configuration printprop dns NameServers
register: chk_dns
changed_when: "'NameServers={{ ansible_local.domain.extdnsserver1 }},{{ ansible_local.domain.extdnsserver2 }}' not in chk_dns.stdout"
ignore_errors: yes
changed_when: "'NameServers={{ ansible_local.domain.extdnsserver1 }}' not in chk_dns.stdout"
tags: force-resolvers
- name: Configuring DNS resolution