Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: Check the version of tomcat and fileupload
- hosts: all
- remote_user: "{{ ssh_user_name }}"
- become: yes
- become_method: sudo
- tasks:
- - name: Run the script
- shell: "check_tomcat.sh"
- args:
- chdir: "/home/rdumitru/"
- executable: /bin/bash
- And the output:
- TASK [Run the script] ********************************************************************************************************************************************************************************************************************************************************
- task path: /Users/rdumitru/deloitte/projects/mercia/infrastructure/check_tomcat.yml:9
- fatal: [hostname]: FAILED! => {"changed": true, "cmd": "check_tomcat.sh", "delta": "0:00:00.002741", "end": "2019-11-22 12:50:59.843214", "msg": "non-zero return code", "rc": 127, "start": "2019-11-22 12:50:59.840473", "stderr": "/bin/bash: check_tomcat.sh: command not found", "stderr_lines": ["/bin/bash: check_tomcat.sh: command not found"], "stdout": "", "stdout_lines": []}
- fatal: [hostname]: FAILED! => {"changed": true, "cmd": "check_tomcat.sh", "delta": "0:00:00.003634", "end": "2019-11-22 12:50:59.889483", "msg": "non-zero return code", "rc": 127, "start": "2019-11-22 12:50:59.885849", "stderr": "/bin/bash: check_tomcat.sh: command not found", "stderr_lines": ["/bin/bash: check_tomcat.sh: command not found"], "stdout": "", "stdout_lines": []}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement