# win\_environment module

**URL:** <https://forum.ansible.com/t/win-environment-module/20439>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [February 3, 2016, 2:49pm UTC](https://forum.ansible.com/t/win-environment-module/20439 "2016-02-03T14:49:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shmulik\_Alfandari](https://avatars.discourse-cdn.com/v4/letter/s/58f4c7/32.png) [@Shmulik\_Alfandari](https://forum.ansible.com/u/Shmulik_Alfandari)\
**Post date:** [February 3, 2016, 2:49pm UTC](https://forum.ansible.com/t/win-environment-module/20439/1 "2016-02-03T14:49:22Z")

</div>

Hi,

I am trying to add specific path to the Path Environment Variables on windows hosts using win\_environment module  
The problem is that this module can only add new variable or delete existing one, it’s impossible to add something to existing variable.

Is there any other way to update Path Environment Variables on windows hosts?

Thanks,  
Shmulik.

---

<div class="post-metadata">

**Author:** ![j.r.hawkesworth](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@j.r.hawkesworth](https://forum.ansible.com/u/j.r.hawkesworth)\
**Post date:** [February 8, 2016, 2:37pm UTC](https://forum.ansible.com/t/win-environment-module/20439/2 "2016-02-08T14:37:20Z")

</div>

Hi,

You could use the script module and just add to the path that way.

But the module is this way for a reason. To me, I want to take control of exactly what is configured on machines. So when I look at my playbooks I can know exactly what the PATH is set to on all machines that the playbook applies to.

Perhaps you are trying to acheive something where this needs to be different on each machine though?

What is it you need to do?

Jon (module author)
