<p dir="auto">I find myself in many situations executing Ansible to deploy systems but frequently want to use the same credential set to SSH to those machines. Currently for static hosts I am keeping two lists of the same information <code class="notranslate">.ssh/config</code> and a hosts file.</p>
<p dir="auto">So what I am suggesting would be to use Ansible's inventory to enable more rapid SSH connections including but not limited to connecting to static hosts and to dynamic inventory when the result set is a single node.</p>
<p dir="auto">There's a lot of useful information in the ansible inventory, including remote usernames, connection methods, etc.  I wish I could take advantage of that when I need a shell on a "remote" host by running something like 'ansible-connect hostname'.</p>
<p dir="auto">This would, ideally, launch an interactive shell on the target host taking into account ansible_host, remote_user, become, become_user, connection type, etc.</p>