title: Ansible and liquibase integration
body: <p>I have a use-case where I have to run <code>liquibase</code> migrations using <code>ansible</code> but do not know how to come-around remote connection. One thought is creating ssh tunnel but I am not sure. </p>
  
  <p>Use case:
  (on remote server)</p>
  
  <ul>
  <li>Create N number of databases</li>
  <li>Create database user for each db</li>
  <li>Run liquibase migrations for each db</li>
  </ul>
  
  <p>Remote server is only accessible through ssh and liquibase does not support ssh tunnel ( as far as I know) nor there is ansible module for liquibase.</p>
  
  <p>A hackish way seems to be, before running above tasks: </p>
  
  <ul>
  <li>Create forward/reverse tunnel for mysql,</li>
  <li>Create N number of databases</li>
  <li>Create database user for each db</li>
  <li>Run liquibase migrations for each db</li>
  <li>Kill the tunnel. </li>
  </ul>
  
  <p>But I am not sure this is best way to solve this issue </p>