Got an error using shell module in playbook, 'Could not find or access to "path/to/the/shell/script"

21 views
Skip to first unread message

chaithu...@gmail.com

unread,
Oct 1, 2018, 11:31:17 AM10/1/18
to Ansible Project
Hi guys, 
Good morning, This is Chaithanya. i got the above error, even i mention remote_src: yes

Jonathan Lozada De La Matta

unread,
Oct 1, 2018, 11:34:08 AM10/1/18
to ansible...@googlegroups.com
can you provide the tasks?

On Mon, Oct 1, 2018 at 11:31 AM <chaithu...@gmail.com> wrote:
Hi guys, 
Good morning, This is Chaithanya. i got the above error, even i mention remote_src: yes

--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/55245e3e-64ac-4eb0-a87a-b64225e63905%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--

Jonathan lozada de la matta

AUTOMATION PRACTICE



 

krishna chaithanya inedi

unread,
Oct 1, 2018, 11:40:02 AM10/1/18
to ansible...@googlegroups.com

# run a script using a executable system path
- script: /extra/pki/Ansible/staging/lib/executable.sh
args: 
   executable: shell
 remote_src: yes

...

Jonathan Lozada De La Matta

unread,
Oct 1, 2018, 12:16:53 PM10/1/18
to ansible...@googlegroups.com
im assuming the formatting got broken when you added to email? if not then remote_src needs same spacing.


For more options, visit https://groups.google.com/d/optout.

krishna chaithanya inedi

unread,
Oct 1, 2018, 12:22:36 PM10/1/18
to ansible...@googlegroups.com
Yes syntax I added correctly (spacing and all) issue with “could not find or access to that file using the shell module” 

Reply all
Reply to author
Forward
0 new messages