On 5/28/20 5:53 PM, Sivaraman P wrote:
> 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
>       
>   
> 

So what's the purpose of this task and why do you need Ansible for it?

Regards
         Racke

-- 
Ecommerce and Linux consulting + Perl and web application programming.
Debian and Sympa administration. Provisioning with Ansible.

-- 
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/7997917d-6e42-d0ab-314b-b15546768b16%40linuxia.de.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to