title: Using Ansible to login into a temporary interactive screen
body: <p>I have a few remote machines on which I need to execute some commands. I want to automate this using Ansible.</p>
  
  <p>This is how the login into the remote machine works. </p>
  
  <ul>
  <li>I login using a username/password.</li>
  <li>Right after login (after it prints the last successful login etc) another interactive screen pops up asking on security question(please don't ask why but it is configured this way). Only after typing the answer can I execute commands on the machine.</li>
  </ul>
  
  <p>Step 2 works similar to an interactive script put inside bash_profile. </p>
  
  <p>I have RSA key pairs configured so Ansible can reach step 2. But in step 2 how can I type in the security answer using ansible before proceeding to other tasks. </p>