DEV Community

Roy
Roy

Posted on

nodename and hostname in ansible

  • inventory_hostname is the hostname as it is set in your Ansible inventory. For example www.internal-name.example.
  • ansible_hostname is the unqualified hostname as reported by the system. For example www.
  • ansible_nodename is the fully qualified hostname as reported by the system. For example www.example.com.

Top comments (0)