Corrected resolver checking for DNS settings.
This commit is contained in:
parent
08532e58d7
commit
059b60e80c
@ -24,11 +24,11 @@
|
|||||||
# DNS
|
# DNS
|
||||||
# Already preconfigured before (roles/nethcfg/tasks/base.yml)
|
# Already preconfigured before (roles/nethcfg/tasks/base.yml)
|
||||||
# reforcing the resolver addresses to the ones configured
|
# reforcing the resolver addresses to the ones configured
|
||||||
|
|
||||||
- name: Checking DNS configuration
|
- name: Checking DNS configuration
|
||||||
shell: /sbin/e-smith/db configuration printprop dns NameServers
|
shell: /sbin/e-smith/db configuration printprop dns NameServers
|
||||||
register: chk_dns
|
register: chk_dns
|
||||||
changed_when: "'NameServers={{ ansible_local.domain.extdnsserver1 }},{{ ansible_local.domain.extdnsserver2 }}' not in chk_dns.stdout"
|
changed_when: "'NameServers={{ ansible_local.domain.extdnsserver1 }}' not in chk_dns.stdout"
|
||||||
ignore_errors: yes
|
|
||||||
tags: force-resolvers
|
tags: force-resolvers
|
||||||
|
|
||||||
- name: Configuring DNS resolution
|
- name: Configuring DNS resolution
|
||||||
|
Loading…
x
Reference in New Issue
Block a user