Hi Racke,
I tried with command but it's not working.
To see the output
- name: run janusgraph script
....
register: janusgraph_result
- debug:
var: janusgraph_result
should output will print in the same consol or is there any particular path?
On Thu, Jun 25, 2020 at 11:20 AM Stefan Hornburg (Racke) <[email protected]>
wrote:
> On 6/25/20 1:01 AM, Rajeeb sahoo wrote:
> > I am new in ansible project.
> >
> > I need to start janusgraph.sh script through ansible. when I am
> executing it not giving any error but janusgraph is not
> > starting. my janusgraph is combining with Cassandra, elasticsearch, and
> gramlin server.
> >
> > when I will start janusgraph the above three-component should start.
> >
> > - name: run janusgraph script
> > become_user: {{user_name}} (example)
> > shell: bash janusgraph.sh start
> > args:
> > chdir: {{path_of_janusgraph}} (example)
> >
>
> Hello Rajeeb,
>
> first of all it is recommended to use "command" module instead of "shell".
>
> To see the output of the script, add the following:
>
> - name: run janusgraph script
> ....
> register: janusgraph_result
>
> - debug:
> var: janusgraph_result
>
> Regards
> Racke
>
> >
> > --
> > *Thanks & Regards,
> > *
> > *Rajeeb Sahoo*
> >
> > --
> > 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] <mailto:
> [email protected]>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/ansible-project/CAEzMhAaCP96O1Z_gY5BOpqmCsS03_83DC3ZGgKmuWopntQj3dQ%40mail.gmail.com
> > <
> https://groups.google.com/d/msgid/ansible-project/CAEzMhAaCP96O1Z_gY5BOpqmCsS03_83DC3ZGgKmuWopntQj3dQ%40mail.gmail.com?utm_medium=email&utm_source=footer
> >.
>
>
> --
> Ecommerce and Linux consulting + Perl and web application programming.
> Debian and Sympa administration. Provisioning with Ansible.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/fd38c466-af0e-b1a2-b5db-2e70062a3ca0%40linuxia.de
> .
>
--
*Thanks & Regards,*
*Rajeeb Sahoo*
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAEzMhAbGQN-fpipwU%3DRVjJdndneq_3zwP9rJoGek%2B9ppBUk2oA%40mail.gmail.com.