title: Nohup no such file or directory with Ansible Playbook
body: <p>I am trying to execute a playbook that will execute sql script on 4 different databases.</p>
  <p>In the playbook, I am using the command as</p>
  <pre class="lang-yaml prettyprint-override"><code>- name: Run sample script
    shell: nohup ./S4D/wrapper.sh ./S4D/sample.sql &gt; ./S4D/nohup.out 2&gt;&amp;1 &amp; 
  </code></pre>
  <p>The directory structure looks like</p>
  <pre><code>root/
  └── SD4/
      ├── wrapper.sh
      └── sample.sql 
  </code></pre>
  <p>I am getting the error</p>
  <blockquote>
  <p>&quot;stderr&quot; : &quot;/bin/sh: ./S4D/nohup.out: No such file or directory&quot;</p>
  </blockquote>
  <p>already checked EOL conversion, set to Unix (LF).</p>