janusgraph script

19 views
Skip to first unread message

Rajeeb sahoo

unread,
Jun 24, 2020, 7:01:37 PM6/24/20
to ansible...@googlegroups.com
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) 


--
Thanks & Regards,
Rajeeb Sahoo

Stefan Hornburg (Racke)

unread,
Jun 25, 2020, 1:50:36 AM6/25/20
to ansible...@googlegroups.com
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
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> 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.

signature.asc

Rajeeb sahoo

unread,
Jun 25, 2020, 12:49:40 PM6/25/20
to ansible...@googlegroups.com
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?

To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/fd38c466-af0e-b1a2-b5db-2e70062a3ca0%40linuxia.de.

Stefan Hornburg (Racke)

unread,
Jun 25, 2020, 1:49:13 PM6/25/20
to ansible...@googlegroups.com
On 6/25/20 6:49 PM, Rajeeb sahoo wrote:
> 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?

The debug module displays the contents of the given variable below the "run janusgraph script" task.

Regards
Racke
> > ansible-proje...@googlegroups.com <mailto:ansible-project%2Bunsu...@googlegroups.com>
> <mailto:ansible-proje...@googlegroups.com <mailto:ansible-project%2Bunsu...@googlegroups.com>>.
> > 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
> ansible-proje...@googlegroups.com <mailto:ansible-project%2Bunsu...@googlegroups.com>.
> 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
> ansible-proje...@googlegroups.com <mailto:ansible-proje...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAEzMhAbGQN-fpipwU%3DRVjJdndneq_3zwP9rJoGek%2B9ppBUk2oA%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAEzMhAbGQN-fpipwU%3DRVjJdndneq_3zwP9rJoGek%2B9ppBUk2oA%40mail.gmail.com?utm_medium=email&utm_source=footer>.
signature.asc

Rajeeb sahoo

unread,
Jun 25, 2020, 5:17:00 PM6/25/20
to ansible...@googlegroups.com
Hello Racke

It is working. 
Thank you Racke

To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/64e091c4-43e8-30a0-cc13-62ad00a7fa16%40linuxia.de.
Reply all
Reply to author
Forward
0 new messages