Use Shell Command "mv" using ansible to move folder from one to another
<p>I want to move my workspace3 folder to /usr/share directory using below Ansible scripts. But I am unable to move it.</p>

<pre><code> - name: Move workspace3 directory to /usr/share/ Folder
   command: mv /tmp/workspace3/ /usr/share
</code></pre>

<p>I also tried with shell module</p>

<pre><code>   shell: mv /tmp/workspace3 /usr/share
</code></pre>

<p>I believe it is a permission issue, how can I define permission through ansible ?</p>