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
- register: result
- - name: Print the result
- debug:
- var: result.stdout_lines
- ###Output###
- TASK [Run the script] ********************************************************************************************************************************************************************************************************************************************************
- 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": []}
- TASK [Print the result] ******************************************************************************************************************************************************************************************************************************************************
- ok: [hostname] => {
- "result.stdout_lines": []
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement