title: Ansible: copy file if not exists
body: <p>I've seen the question asked in a round about sort of way but not conclusively answered. What I want to do is straight forward. I want to copy a file index.php to the remote host at /var/www/index.php but only if it doesn't already exist.</p>
  
  <p>I've tried using <em>creates</em> and *only_if* but I don't think these are intended for the purpose I want here. Can anyone supply some examples of how I would go about this?</p>