-
Notifications
You must be signed in to change notification settings - Fork 23.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ansible_dns.nameservers doesn't reflect real name servers for Ubuntu and Photon OS #56772
Comments
Files identified in the description: If these files are inaccurate, please update the |
Files identified in the description: If these files are incorrect, please update the |
We experience this issue not because in these OS releases
It's because
|
@nickgryg and that is the whole point, when ansible sees |
Thank you very much for your submission to Ansible. It means a lot to us that you've taken time to contribute. Unfortunately, this issue has been open for some time while waiting for a contributor to take it up but there does not seem to have been anyone that did so. So we are going to close this issue to clear up the queues and make it easier for contributors to browse possible implementation targets. However, we're absolutely always up for discussion. Because this project is very active, we're unlikely to see comments made on closed tickets and we lock them after some time. If you or anyone else has any further questions, please let us know by using any of the communication methods listed in the page below: In the future, sometimes starting a discussion on the development list prior to proposing or implementing a feature can make getting things included a little easier, but it's not always necessary. Thank you once again for this and your interest in Ansible! |
SUMMARY
On Ubuntu 19.04 and Photon OS 3.0, the ansible_dns.nameservers is always ["127.0.0.53"]. But if run "systemd-resolve --status", a different DNS servers list could be get. Take Photon OS 3.0 as an example, below is the output of "systemd-resolve --status"
But its ansible_facts doesn't reflect these real name servers:
ISSUE TYPE
COMPONENT NAME
setup
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 19.04 (should also exists with earlier version: maybe 17.10 and later)
VMware Photon OS 3.0
Because in these OS releases, /etc/resolv.conf is a symbolic link:
/etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.conf
STEPS TO REPRODUCE
ansible host -m setup
EXPECTED RESULTS
From above Photon OS 3.0 example, ansible_dns.nameservers could get real name servers as below:
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: