Ansible: How to chmod +x a file with Ansible?
<p>What is the best way to chmod + x a file with ansible.</p>

<p>Converting the following script to ansible format.</p>

<pre><code>mv /tmp/metadata.sh /usr/local/bin/meta.sh
chmod +x /usr/local/bin/meta.sh
</code></pre>

<p>This is what I have so far..</p>

<pre><code>- name: move /tmp/metadata.sh to /usr/local/bin/metadata.sh
  command: mv /tmp/metadata.sh /usr/local/bin/metadata.sh
</code></pre>