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

**URL:** <https://forum.ansible.com/t/got-an-error-using-shell-module-in-playbook-could-not-find-or-access-to-path-to-the-shell-script/28696>\
**Category:** Ansible Project\
**Created:** [October 1, 2018, 3:31pm UTC](https://forum.ansible.com/t/got-an-error-using-shell-module-in-playbook-could-not-find-or-access-to-path-to-the-shell-script/28696 "2018-10-01T15:31:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaithuinedi222](https://avatars.discourse-cdn.com/v4/letter/c/779978/32.png) [@chaithuinedi222](https://forum.ansible.com/u/chaithuinedi222)\
**Post date:** [October 1, 2018, 3:31pm UTC](https://forum.ansible.com/t/got-an-error-using-shell-module-in-playbook-could-not-find-or-access-to-path-to-the-shell-script/28696/1 "2018-10-01T15:31:17Z")

</div>

Hi guys,  
Good morning, This is Chaithanya. i got the above error, even i mention remote\_src: yes

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [October 1, 2018, 3:33pm UTC](https://forum.ansible.com/t/got-an-error-using-shell-module-in-playbook-could-not-find-or-access-to-path-to-the-shell-script/28696/2 "2018-10-01T15:33:48Z")

</div>

can you provide the tasks?

---

<div class="post-metadata">

**Author:** ![chaithuinedi222](https://avatars.discourse-cdn.com/v4/letter/c/779978/32.png) [@chaithuinedi222](https://forum.ansible.com/u/chaithuinedi222)\
**Post date:** [October 1, 2018, 3:39pm UTC](https://forum.ansible.com/t/got-an-error-using-shell-module-in-playbook-could-not-find-or-access-to-path-to-the-shell-script/28696/3 "2018-10-01T15:39:37Z")

</div>

# run a script using a executable system path

- script: /extra/pki/Ansible/staging/lib/executable.sh  
args:  
executable: shell  
remote\_src: yes

…

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [October 1, 2018, 4:16pm UTC](https://forum.ansible.com/t/got-an-error-using-shell-module-in-playbook-could-not-find-or-access-to-path-to-the-shell-script/28696/4 "2018-10-01T16:16:29Z")

</div>

im assuming the formatting got broken when you added to email? if not then remote\_src needs same spacing.

---

<div class="post-metadata">

**Author:** ![chaithuinedi222](https://avatars.discourse-cdn.com/v4/letter/c/779978/32.png) [@chaithuinedi222](https://forum.ansible.com/u/chaithuinedi222)\
**Post date:** [October 1, 2018, 4:22pm UTC](https://forum.ansible.com/t/got-an-error-using-shell-module-in-playbook-could-not-find-or-access-to-path-to-the-shell-script/28696/5 "2018-10-01T16:22:15Z")

</div>

Yes syntax I added correctly (spacing and all) issue with “could not find or access to that file using the shell module”
