Skip to content

Glossary: Ansible and Server Automation

Connection variables

Also written: ansible_host, ansible_user, ansible_port, ansible_connection, ansible_ssh_private_key_file

Variables with special names that tell Ansible how to reach a host: `ansible_host` (address), `ansible_user` (login user), `ansible_port` (SSH port, default 22), `ansible_connection` (`ssh` or `local`) and `ansible_ssh_private_key_file` (which private key).

Where the book teaches it

Related terms

SSH (Secure Shell)Inventory