Help needed to alter my code to achieve when condition in loop in stdout

22 views
Skip to first unread message

Hareesh Vn

unread,
Oct 18, 2021, 10:34:09 AM10/18/21
to Ansible Project
Hi Team

I am installing Mongo on n number of nodes. I have written ansible code for it and its working.

When it comes to beatification, like
1. Pass the result of installation to variable (example: result). So this result variable will have output of installation of all nodes.
2. So in case of error, i am passing debug message, "configuration failed on xyz server)

TO achieve this when condition against stdout format , i am failing


Please help

Dick Visser

unread,
Oct 18, 2021, 10:38:40 AM10/18/21
to ansible...@googlegroups.com
What is your actual question?

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/92fcdcf3-0014-4f80-b7a4-78771de2c4f4n%40googlegroups.com.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.

Hareesh Vn

unread,
Oct 18, 2021, 11:04:38 AM10/18/21
to Ansible Project
my code with reference to passing when condition against stdout is not working as expected. May be we can chat or have internet call?
Reply all
Reply to author
Forward
0 new messages