It is not necessarily true that Ansible will detect the fqdn. If no FQDN is set it will set that variable to just the short name.
You might need to compare the FQDN to the short hostname and then if they match create a new one (presumably you know what domain name to add to the end) Equally you could replace the hostname with a created one each time as it won't change anything if the result woild be the same. Unless you are potentially using multiple domain names I would just do that, -- 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/8531b44f-ec0e-417f-be5b-99154591907a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
