-
Notifications
You must be signed in to change notification settings - Fork 40
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
printing correct entries in /etc/hosts #3
Comments
Can you do pull request? as far as I remember I've tried your method once, it wasn't working on debian I think, or in RHEL... when I did like it does now, it started to work. |
The way it's done now in this role doesn't seem to work on Debian:
This causes issues with mail (among other things). Of course I changed my server's address and hostname in the example. |
hut8
added a commit
to hut8/ansible-fqdn
that referenced
this issue
Dec 27, 2015
hut8
added a commit
to hut8/ansible-fqdn
that referenced
this issue
Dec 27, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi , to get correct value in /etc/hosts you should use
{{ hostvars[item].ansible_hostname }}.{{ fqdn }}
it will print in /etc/hosts as
10.188.0.47 one.csc.fi one
( IP FQDN HOSTNAME )use below in default.yml
The text was updated successfully, but these errors were encountered: