{"action":"closed","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/15682","repository_url":"https://api.github.com/repos/ansible/ansible","labels_url":"https://api.github.com/repos/ansible/ansible/issues/15682/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/15682/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/15682/events","html_url":"https://github.com/ansible/ansible/issues/15682","id":152537562,"number":15682,"title":"Ansible 2.2.0: win_feature  - source ","user":{"login":"Plork","id":4212271,"avatar_url":"https://avatars.githubusercontent.com/u/4212271?v=3","gravatar_id":"","url":"https://api.github.com/users/Plork","html_url":"https://github.com/Plork","followers_url":"https://api.github.com/users/Plork/followers","following_url":"https://api.github.com/users/Plork/following{/other_user}","gists_url":"https://api.github.com/users/Plork/gists{/gist_id}","starred_url":"https://api.github.com/users/Plork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Plork/subscriptions","organizations_url":"https://api.github.com/users/Plork/orgs","repos_url":"https://api.github.com/users/Plork/repos","events_url":"https://api.github.com/users/Plork/events{/privacy}","received_events_url":"https://api.github.com/users/Plork/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible/labels/needs_info","name":"needs_info","color":"eb6420"},{"url":"https://api.github.com/repos/ansible/ansible/labels/windows","name":"windows","color":"777777"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/ansible/ansible/milestones/6","html_url":"https://github.com/ansible/ansible/milestones/stable-2.1","labels_url":"https://api.github.com/repos/ansible/ansible/milestones/6/labels","id":995714,"number":6,"title":"stable-2.1","description":"","creator":{"login":"abadger","id":209242,"avatar_url":"https://avatars.githubusercontent.com/u/209242?v=3","gravatar_id":"","url":"https://api.github.com/users/abadger","html_url":"https://github.com/abadger","followers_url":"https://api.github.com/users/abadger/followers","following_url":"https://api.github.com/users/abadger/following{/other_user}","gists_url":"https://api.github.com/users/abadger/gists{/gist_id}","starred_url":"https://api.github.com/users/abadger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abadger/subscriptions","organizations_url":"https://api.github.com/users/abadger/orgs","repos_url":"https://api.github.com/users/abadger/repos","events_url":"https://api.github.com/users/abadger/events{/privacy}","received_events_url":"https://api.github.com/users/abadger/received_events","type":"User","site_admin":false},"open_issues":63,"closed_issues":253,"state":"open","created_at":"2015-02-25T19:26:53Z","updated_at":"2016-09-07T17:59:55Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2016-05-02T11:42:41Z","updated_at":"2016-09-07T17:59:55Z","closed_at":"2016-09-07T17:59:55Z","body":" - Bug Report\r\n\r\n##### ANSIBLE VERSION\r\n\"ansible 2.2.0 (devel 1fc44e4103) last updated 2016/05/02 12:34:45 (GMT +200)\r\n  lib/ansible/modules/core: (detached HEAD b6ad3b6773) last updated 2016/05/02 12:34:56 (GMT +200)\r\n  lib/ansible/modules/extras: (detached HEAD 1846de2809) last updated 2016/05/02 12:35:06 (GMT +200)\r\n  config file = /home/_mbezemer/ansible/playbooks/teamcity_win/ansible.cfg\r\n  configured module search path = Default w/o overrides\"\r\n\r\n##### OS / ENVIRONMENT\r\nserver: ubuntu 14.04 \r\ntarget: windows 2012 r2\r\n\r\n##### SUMMARY\r\nThe \"source\" implementation of win_feature cannot find target path.\r\n\r\n##### STEPS TO REPRODUCE\r\nI am trying to make a playbook for a default installation of IIS. Not exactly needed information for the problem but I am adding windows features and specifying a source because we stripped our windows installation.\r\n\r\n  iis_features:\r\n    - NET-Framework-Core\r\n    - Web-WebServer\r\n    - Web-Static-Content\r\n    - Web-Default-Doc\r\n    - Web-Http-Errors\r\n    - Web-Http-Redirect\r\n    - Web-App-Dev\r\n    - Web-Asp-Net\r\n    - Web-Net-Ext\r\n    - Web-ISAPI-Ext\r\n    - Web-ISAPI-Filter\r\n    - Web-Health\r\n    - Web-Http-Logging\r\n    - Web-Security\r\n    - Web-Basic-Auth\r\n    - Web-Url-Auth\r\n    - Web-Filtering\r\n    - Web-Performance\r\n    - Web-Stat-Compression\r\n    - Web-Dyn-Compression\r\n    - Web-Mgmt-Tools\r\n    - Web-Mgmt-Console\r\n    - Web-Scripting-Tools\r\n    - Web-Mgmt-Service\r\n    \r\n  iis_features_source: \\\\domain.local\\dfs\\software\\osd\\sources\\w2012R2\\sources\\sxs  \r\n\r\n  - name: webserver\r\n    win_feature:\r\n      name: \"{{ iis_features | join(',') }}\"\r\n      state: present\r\n      restart: \"{{restart}}\"\r\n      include_sub_features: \"{{include_sub_features}}\"\r\n      source: \"{{iis_features_source}}\"\r\n\r\nwhen I run the playbook I get.\r\n\r\nTASK [iis_win : webserver] *****************************************************\r\nfatal: [server.domain.local]: FAILED! => {\"changed\": false, \"failed\": true, \"msg\": \"Failed to find source path \\\\\\\\domain.local\\\\dfs\\\\software\\\\osd\\\\sources\\\\w2012R2\\\\sources\\\\sxs\"}\r\n\r\nWhen I put ANSIBLE_KEEP_REMOTE_FILES=1 and try to debug the script I cannot find anything wrong with it.\r\n\r\nLine 273:\r\nif (!(test-path $source))\r\n    {\r\n        Fail-Json $result \"Failed to find source path $source\"\r\n    }\r\n\r\nHowever when I run the following powershell from the server.\r\n\r\n[DBG]: PS C:\\Users\\sa_deploy\\AppData\\Local\\Temp\\ansible-tmp-1462188072.5-534573246740>> Test-Path \"\\\\domain.local\\dfs\\software\\osd\\sources\\w2012R2\\sources\\sxs  \"\r\nTrue\r\n\r\nKerberos double hop I presume :s\r\n"}}
{"actor":{"display_login":"Plork"}}