title: The command was not found or was not executable: .sh // /bin/chmod: No such file or directory
body: <p>I am trying to run a shell script and become an error: </p>
  
  <pre><code> "The command was not found or was not executable: chdir=/home/cloudera/Documents/TPCx-BB/bin/TPCxBB_Benchmarkrun.sh."
  </code></pre>
  
  <p>The script is in this folder, so it has to be that it is not executable. It has the following permission:</p>
  
  <pre><code>chmod 777 -R /home/cloudera/Documents/TPCx-BB/bin/TPCxBB_Benchmarkrun.sh
  </code></pre>
  
  <p>The script begins with:</p>
  
  <pre><code>#!/usr/bin/env bash
  </code></pre>
  
  <p>and I am running it from ansible as follows:</p>
  
  <pre><code>command: chdir=/home/cloudera/Documents/TPCx-BB/bin/TPCxBB_Benchmarkrun.sh
  </code></pre>
  
  <p>I have found a possible solution to run the command like this:</p>
  
  <p>But then I get the following error:</p>
  
  <pre><code>"/bin/chmod: cannot access 'chdir=/home/cloudera/Documents/TPCx-BB/bin/TPCxBB_Benchmarkrun.sh': No such file or directory"
  </code></pre>
  
  <p>Anyone sees what could be the problem?</p>