how rsync_project to run on the remote server
<p>Here is my scenario:</p>

<p><img src="https://cloud.githubusercontent.com/assets/759107/18025282/f5ba497a-6c5f-11e6-86be-b7324f109192.png" alt="fabric-question">  </p>

<p>I want to execute local fab command to rsync code in the bastion server to the web server parallel, but I find <code>rsync_project</code> can only run as a <strong>local</strong> command, fail to find code base path in my local machine.  How to slove this issue, and is there a way to set <code>local</code> host string as the bastion server to let rsync_project run on the bastion server properly?  </p>

<p>Thank you for you time.</p>

<p>I think your best bet would be to install fabric and rsync_project on 'bastion' and use fabrics "run" to call rsync_project on bastion.</p>

<p>Another option would be to use "get" to receive a copy from bastion and run rsync_project locally. But this approach will not match your picture.</p>

python fabric