title: How to update Windows environment variables after Ansible's win_environment module?
body: <p>I am using Ansible to configure our Windows Servers 2012.</p>
  
  <p>I am using Ansible's Windows modules: <code>win_xxx</code>. All modules are working fine except for</p>
  
  <ul>
  <li><code>win_environment</code>  </li>
  <li><code>win_path</code></li>
  </ul>
  
  <p>I think the <code>win_path</code> depends <code>win_environment</code> module in my case. </p>
  
  <p>I am installing </p>
  
  <ul>
  <li><code>JDK</code></li>
  <li><code>Apache Ant</code> </li>
  <li><code>Apache Tomcat8</code>. </li>
  </ul>
  
  <p>Installation works fine and setting up the environment variables for </p>
  
  <ul>
  <li><code>JAVA_HOME</code></li>
  <li><code>ANT_HOME</code> </li>
  </ul>
  
  <p>is not working as expected. The server is not updated with the new environment variables. I need to sign out and sign in back to the server in order the new variables are updated. Is there any way to update the system in Ansible or in Windows Batch/Powershell without signing in and out?</p>