Sounds like this shell script isn’t intended to be used non interactively.
What does it look like, i.e. it’s content?
I’d try peeling off the shell wrapper logic and with any luck the actual
commands are straight forward and hence better suited for automation tools
such as ansible.

Dick

On Fri, 12 Jul 2019 at 21:50, Sunil Kathait <sunil.technoho...@gmail.com>
wrote:

> I can run the script with the command line argument on the linux server it
> works fine.
>
> for e.g.: ./install.sh -n -I <IP address of the server>
>
> the above command is able to install the script on the server.
>
> When I am trying to do via ansible (version 2.5) playbook using the shell
> module it gives me an argument error.
>
>    - name: Running the script
>      shell: yes | ./fullinstall
>
>
> Expect modules has been tried.
> --my-arg1=IP address
> --some-argument=<>
> above things are tried.
>
> --
> 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-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/421f3193-dfe9-48a5-a8ed-495e07a45a4d%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/421f3193-dfe9-48a5-a8ed-495e07a45a4d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
-- 
Sent from a mobile device - please excuse the brevity, spelling and
punctuation.

-- 
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-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAL8fbwNeF8b3uWrg96XrN1B5g1A0YJpnbYRKiLCW9OG1F7xGKw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to