I'm trying to come up with an ansible process to compare a DNS against an
FQDN:
This is what I have:
---
- name: Set DNS variable
shell: dig {{ ansible_fqdn }} +short
register: DNSOUT
tasks:
- name: Verify DNS
# - command: /usr/bin/echo {{ ansible_fqdn }} not in DNS!
command: /usr/bin/echo not in DNS!
when: $ansible_fqdn != DNSOUT
This is not working? Is there a better way to do this? Or please suggest
a fix.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/cb8dd1c8-1ec8-4422-87ff-21f3aaf7e926%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.