Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. - name: Check the version of tomcat and fileupload
  2. hosts: all
  3. remote_user: "{{ ssh_user_name }}"
  4. become: yes
  5. become_method: sudo
  6.  
  7. tasks:
  8.  
  9. - name: Run the script
  10. shell: "./check_tomcat.sh"
  11. args:
  12. chdir: "/home/rdumitru/"
  13. executable: /bin/bash
  14. register: result
  15.  
  16. - name: Print the result
  17. debug:
  18. var: result.stdout_lines
  19.  
  20.  
  21. ###Output###
  22. TASK [Run the script] ********************************************************************************************************************************************************************************************************************************************************
  23. changed: [hostname] => {"changed": true, "cmd": "./check_tomcat.sh", "delta": "0:00:00.238934", "end": "2019-11-22 13:21:03.459396", "rc": 0, "start": "2019-11-22 13:21:03.220462", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
  24.  
  25. TASK [Print the result] ******************************************************************************************************************************************************************************************************************************************************
  26. ok: [hostname] => {
  27. "result.stdout_lines": []
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement