title: How could I open a ssh shell to remote with Ansible?
body: <p>I am migrating from Capistrano to Ansible for deploying web application. I managed to migrate almost all our recipes but I am stuck with one.</p>
  
  <p>To quickly access a remote server we used to hit <code>cap production ssh</code>, this command execute a local ssh command with the stage configuration. That way anybody in the team can access the remote server quickly without having to find the username and hostname needed.</p>
  
  <p>I a trying to do the same thing with Ansible but I not sure it is even possible. All I get so far is this error: <code>Pseudo-terminal will not be allocated because stdin is not a terminal.</code></p>
  
  <p>Here is the Ansible task I use.</p>
  
  <pre><code>- name: SSH to host
    hosts: app
    gather_facts: no
    tasks:
      - command: ssh {{ ansible_user }}@{{ inventory_hostname }}
        delegate_to: localhost
  </code></pre>
  
  <p>Any ideas ?</p>