title: Ansible: How to change active directory in Ansible Playbook?
body: <pre><code>- name: Go to the folder
    command: chdir=/opt/tools/temp
  </code></pre>
  
  <p>When I run my playbook, I get:</p>
  
  <pre><code>TASK: [Go to the folder] ***************************** 
  failed: [host] =&gt; {"failed": true, "rc": 256}
  msg: no command given
  </code></pre>
  
  <p>Any help is much appreciated.</p>