How to add python path to environment variable using ansible

Can any one help with this?

I am trying to install python 2.7 msi using ansible. Installation succeeded. But not sure how to add to environment variable using ansible.

Pls help.

https://docs.ansible.com/ansible/latest/modules/win_environment_module.html ?

Thanks for you help.
I have tried using this module. Looks like post installation required a restart to work this. How can i avoid a restart.
server node: windows 2012 R

Thanks for you help.
I have tried using this module. Looks like post installation required a restart to work this. How can i avoid a restart.
server node: windows 2012 R

That is a question specific to the application specific question, or a
Windows sysadmin question. Either way it's not something related to
ansible.
I would first check the docs for the python installer if I had to guess.