title: How to resolve this fatal error in ansible?
body: <p>I am not able to start or stop tomcat using ansible. I am trying to stop tomcat on my other system, it gives fatal error but it is able to login through ssh, ping using ansible, create files and directories.
  The error popping up is:</p>
  
  <p>FAILED! => {"changed": true, "cmd": ["sh", "/opt/tomcat/bin/shutdown.sh"], "delta": "0:00:00.002163", "end": "2019-06-18 12:43:23.218056", "msg": "non-zero return code", "rc": 127, "start": "2019-06-18 12:43:23.215893", "stderr": "sh: 0: Can't open /opt/tomcat/bin/shutdown.sh", "stderr_lines": ["sh: 0: Can't open /opt/tomcat/bin/shutdown.sh"], "stdout": "", "stdout_lines": []}</p>
  
  <p>the yaml file is:</p>
  
  <pre><code>---
  - hosts: test-servers
    tasks:
      - name: Make sure that we can connect to the machine
        ping:
  
      - name: Stop Tomcat
        command: sh /opt/tomcat/bin/shutdown.sh
        become: sudo
        become_user: tomcat
  </code></pre>