On 18. april 2017 19:39, nishant bawane wrote:
I tried using script module to run the single scp command, but it is not
working.


My script file(abc.sh) contains below scp command -

#!/bin/bash

 scp /home/capio/ansible/pmossWipm/day1/playbooks/xyz.yml
[email protected]:/home/user

My YML Looks like below -

---
- hosts: testserver
  tasks:

   - name: "run the script"
     script: /home/capio/ansible/pmossWipm/day1/scripts/abc.sh
-----------------------------------------------------------------------------------------------------------------------------------------------

Error getting is as per below-


It is getting stuck here only and hence not proceeding.

Please suggest what exactly needs to be done!

This is not a Ansible problem, so you might have better luck in a more bash/shell/ssh related community.

The only hint I will give you is to make that work you would need passwordless ssh keys in place.

--
Kai Stian Olstad

--
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/b3b4f8da-2e13-cc94-589d-70f6cf5e7930%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to