I am new to ansible, i have the script in the remote machine and the script 
name is ssh.sh which contains below lines to ssh into some another server and 
run the script,

ssh @${server} "sh /tmp/script.sh"

the question is if i use shell module to call to the script ssh.sh in the 
playbook as below, will the ssh command with the above line will work or not???

- hosts: all
  tasks:
    - name: invoke the script
      shell: sh ssh.sh
      register: result
      
  

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/28926265-2ff3-4b15-ae23-07ef9b62bc48%40googlegroups.com.

Reply via email to