Sure. First register the output: https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#registering-variables
Then send the mail: https://docs.ansible.com/ansible/latest/modules/mail_module.html Dick On Mon, 16 Dec 2019 at 07:41, Vikrant Kaushik <[email protected]> wrote: > > Thanks, can you please advise how to capture the output and emailed to > stakeholders. > > On Sunday, 15 December 2019 22:38:22 UTC+5:30, Dick Visser wrote: >> >> Yes >> >> On Sun, 15 Dec 2019 at 16:05, Vikrant Kaushik <[email protected]> wrote: >>> >>> Hi All, >>> >>> I'm curious if this is possible, >>> >>> At a very high level, for the connectivity testing on different servers, >>> I've to follow below steps: >>> >>> >>> >>> Push two Powershell script to each server >>> Run the two PowerShell scripts on each server (listener and client) >>> Capture output and email to stakeholders >>> >>> >>> >>> Can this be done with ansible? >>> >>> >>> regards >>> >>> >>> -- >>> 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/be8b67d7-5752-42b7-8c51-e7eb7815f777%40googlegroups.com. >> >> -- >> 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/e7c9d85f-8de6-4d3e-8ed5-1ee88d243483%40googlegroups.com. -- Dick Visser Trust & Identity Service Operations Manager GÉANT -- 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/CAL8fbwMMUHfn9Zq6yKVmqBDVUV83_NF24Fu9Jdgwmpcp4nRN%3DA%40mail.gmail.com.
