Unable to execute a shell script in ansible

12 views
Skip to first unread message

Asad

unread,
Apr 7, 2023, 9:45:57 AM4/7/23
to ansibl...@googlegroups.com
Hi All ,

I have a issue shell module its not executing :

shell: |
cd /u01/{{APP_NAME}}
scriptpass run {{APP_NAME}} rotate-passwd FORCE_RESET

Multiple shell scrips work is shell module except the above script 
--
Asad Hasan
+91 9582111698

Michael Haskell

unread,
Apr 7, 2023, 11:24:05 AM4/7/23
to Asad, ansibl...@googlegroups.com
Try indenting the commands to the same level (indent scriptpass to the same level as cd). 

On Apr 7, 2023, at 6:45 AM, Asad <asad.ha...@gmail.com> wrote:


--
You received this message because you are subscribed to the Google Groups "Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-deve...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-devel/CAG3LsKHgGhrR5KqmB%3DN7u5UDeJPkyq%3DgbMmxdprq-nO7XY0ZAA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages