hostname not returned correctly · Issue #2663 · ansible/ansible

Looking at the setup module code, it looks like the $ansible_hostname uses the socket.getfqdn() which doesn't give me the actual hostname of the remote server. When running python -c 'import socket...