{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2215","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2215/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2215/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2215/events","html_url":"https://github.com/ansible/ansible-modules-extras/issues/2215","id":154184730,"number":2215,"title":"win_environment cannot append to Path in System Variable","user":{"login":"sayantandas","id":1985863,"avatar_url":"https://avatars.githubusercontent.com/u/1985863?v=3","gravatar_id":"","url":"https://api.github.com/users/sayantandas","html_url":"https://github.com/sayantandas","followers_url":"https://api.github.com/users/sayantandas/followers","following_url":"https://api.github.com/users/sayantandas/following{/other_user}","gists_url":"https://api.github.com/users/sayantandas/gists{/gist_id}","starred_url":"https://api.github.com/users/sayantandas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sayantandas/subscriptions","organizations_url":"https://api.github.com/users/sayantandas/orgs","repos_url":"https://api.github.com/users/sayantandas/repos","events_url":"https://api.github.com/users/sayantandas/events{/privacy}","received_events_url":"https://api.github.com/users/sayantandas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-11T08:13:28Z","updated_at":"2016-05-11T08:13:28Z","closed_at":null,"body":"<!--- Verify first that your issue/request is not already reported in GitHub -->\r\n\r\nwin_environment cannot append values to Path in System Variable. It replaces existing variables\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Feature Request\r\n\r\n##### ANSIBLE VERSION\r\n```\r\n2.0.0.2\r\n```\r\n\r\n##### CONFIGURATION\r\nansible --version\r\nansible 2.0.0.2\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n\r\n##### OS / ENVIRONMENT\r\n<!---\r\n\r\n\r\n-->\r\n cat /etc/lsb-release \r\nDISTRIB_ID=Ubuntu\r\nDISTRIB_RELEASE=16.04\r\nDISTRIB_CODENAME=xenial\r\nDISTRIB_DESCRIPTION=\"Ubuntu 16.04 LTS\"\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\n\r\nwin_environment cannot append values to Path in System Variable\r\n\r\n##### STEPS TO REPRODUCE\r\n\r\nRun below ansible script on a windows host to check the system Path is replaced not appended\r\n\r\n\r\n```\r\n\r\n- name: Set Perl Environment Path\r\n  win_environment:\r\n   state: present\r\n   name: PATH\r\n   value: 'C:\\Perl\\bin'\r\n   level: machine\r\n```\r\n\r\n\r\n\r\n<!--- You can also paste gist.github.com links for larger files -->\r\n\r\n##### EXPECTED RESULTS\r\n<!--- What did you expect to happen when running the steps above? -->\r\n\r\nExpecting a way to append Values to existing Path Variable\r\n\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with high verbosity (-vvvv) -->\r\n\r\n``` It replaces PATH values\r\n<!--- Paste verbatim command output between quotes -->\r\n```"}}