Powershell Script execution

26 views
Skip to first unread message

Vikrant Kaushik

unread,
Dec 15, 2019, 10:05:38 AM12/15/19
to Ansible Project
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:

 

  1. Push two Powershell script to each server
  2. Run the two PowerShell scripts on each server (listener and client)
  3. Capture output and email to stakeholders

 

Can this be done with ansible?


regards


Dick Visser

unread,
Dec 15, 2019, 12:08:22 PM12/15/19
to ansible...@googlegroups.com
Yes

--
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/be8b67d7-5752-42b7-8c51-e7eb7815f777%40googlegroups.com.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.

Vikrant Kaushik

unread,
Dec 16, 2019, 1:40:45 AM12/16/19
to Ansible Project
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 <kaushik...@gmail.com> 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:

 

  1. Push two Powershell script to each server
  2. Run the two PowerShell scripts on each server (listener and client)
  3. 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 ansible...@googlegroups.com.

Dick Visser

unread,
Dec 16, 2019, 3:38:37 AM12/16/19
to ansible...@googlegroups.com
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
> 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/e7c9d85f-8de6-4d3e-8ed5-1ee88d243483%40googlegroups.com.



--
Dick Visser
Trust & Identity Service Operations Manager
GÉANT
Reply all
Reply to author
Forward
0 new messages