{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2732","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2732/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2732/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/2732/events","html_url":"https://github.com/ansible/ansible-modules-extras/issues/2732","id":171385979,"number":2732,"title":"win_iis_webapppool - not able to set all the properties","user":{"login":"AseemKumar","id":19464671,"avatar_url":"https://avatars.githubusercontent.com/u/19464671?v=3","gravatar_id":"","url":"https://api.github.com/users/AseemKumar","html_url":"https://github.com/AseemKumar","followers_url":"https://api.github.com/users/AseemKumar/followers","following_url":"https://api.github.com/users/AseemKumar/following{/other_user}","gists_url":"https://api.github.com/users/AseemKumar/gists{/gist_id}","starred_url":"https://api.github.com/users/AseemKumar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AseemKumar/subscriptions","organizations_url":"https://api.github.com/users/AseemKumar/orgs","repos_url":"https://api.github.com/users/AseemKumar/repos","events_url":"https://api.github.com/users/AseemKumar/events{/privacy}","received_events_url":"https://api.github.com/users/AseemKumar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-16T11:31:17Z","updated_at":"2016-08-16T11:31:17Z","closed_at":null,"body":"<!--- Verify first that your issue/request is not already reported in GitHub -->\r\n\r\n##### ISSUE TYPE\r\n<!--- Pick one below and delete the rest: -->\r\n - Bug Report\r\n - Feature Idea\r\n\r\n##### COMPONENT NAME\r\n<!--- Name of the plugin/module/task -->\r\nwin_iis_webapppool\r\n##### ANSIBLE VERSION\r\n<!--- Paste verbatim output from “ansible --version” between quotes below -->\r\n```\r\nansible 2.1.1.0\r\n```\r\n\r\n##### CONFIGURATION\r\n<!---\r\nMention any settings you have changed/added/removed in ansible.cfg\r\n(or using the ANSIBLE_* environment variables).\r\n-->\r\nDefault config\r\n##### OS / ENVIRONMENT\r\n<!---\r\nMention the OS you are running Ansible from, and the OS you are\r\nmanaging, or say “N/A” for anything that is not platform-specific.\r\n-->\r\nansible is running on Ubuntu Trusty and the systems being managed are linux and Windows.\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\nTried to change the value of Identity under Process Model in advanced settings of an appPool and the change did not take effect. Tried to change the value of other properties under Process Model and none gets changed, even though the output of ansible says changed. IIS being managed is 7.5 version. Can only few properties be modified of IIS from the ansible module as of now? If yes, please specify that in the documentation.\r\n##### STEPS TO REPRODUCE\r\n<!---\r\nFor bugs, show exactly how to reproduce the problem.\r\nFor new features, show how the feature would be used.\r\n-->\r\n\r\n<!--- Paste example playbooks or commands between quotes below -->\r\n```\r\n  - name: Set Identity Type to Network Service.\r\n    win_iis_webapppool:\r\n      name: UIAPI\r\n      attributes: identityType:2\r\n      state: restarted\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\nThe Identity Type of the app pool should have changed to Network Service, but it did not.\r\n\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with high verbosity (-vvvv) -->\r\nThe value of identityType did not change, even though ansible reported that it has been changed.\r\n\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\n<ServerName> ESTABLISH WINRM CONNECTION FOR USER: UserName on PORT 5985 TO ServerName\r\n<ServerName> EXEC Set-StrictMode -Version Latest\r\n(New-Item -Type Directory -Path $env:temp -Name \"ansible-tmp-1471345999.53-80318070680631\").FullName | Write-Host -Separator '';\r\n<ServerName> PUT \"/tmp/tmpm8UpFI\" TO \"C:\\Users\\userID\\AppData\\Local\\Temp\\ansible-tmp-1471345999.53-80318070680631\\win_iis_webapppool.ps1\"\r\n<ServerName> EXEC Set-StrictMode -Version Latest\r\nTry\r\n{\r\n& 'C:\\Users\\userID\\AppData\\Local\\Temp\\ansible-tmp-1471345999.53-80318070680631\\win_iis_webapppool.ps1'\r\n}\r\nCatch\r\n{\r\n$_obj = @{ failed = $true }\r\nIf ($_.Exception.GetType)\r\n{\r\n$_obj.Add('msg', $_.Exception.Message)\r\n}\r\nElse\r\n{\r\n$_obj.Add('msg', $_.ToString())\r\n}\r\nIf ($_.InvocationInfo.PositionMessage)\r\n{\r\n$_obj.Add('exception', $_.InvocationInfo.PositionMessage)\r\n}\r\nElseIf ($_.ScriptStackTrace)\r\n{\r\n$_obj.Add('exception', $_.ScriptStackTrace)\r\n}\r\nTry\r\n{\r\n$_obj.Add('error_record', ($_ | ConvertTo-Json | ConvertFrom-Json))\r\n}\r\nCatch\r\n{\r\n}\r\nEcho $_obj | ConvertTo-Json -Compress -Depth 99\r\nExit 1\r\n}\r\nFinally { Remove-Item \"C:\\Users\\userID\\AppData\\Local\\Temp\\ansible-tmp-1471345999.53-80318070680631\" -Force -Recurse -ErrorAction SilentlyContinue }\r\nchanged: [ServerName] => {\"attributes\": {\"identityType\": \"2\"}, \"changed\": true, \"info\": {\"attributes\": {\"CLRConfigFile\": \"\", \"applicationPoolSid\": \"S-1-5-82-\r\n3266571588-702921383-1992572147-801121604-1441276117\", \"autoStart\": true, \"enable32BitAppOnWin64\": false, \"enableConfigurationOverride\": true, \"managedPipelineMode\": 0, \"\r\nmanagedRuntimeLoader\": \"webengine4.dll\", \"managedRuntimeVersion\": \"v4.0\", \"name\": \"UIAPI\", \"passAnonymousToken\": true, \"queueLength\": 1000, \"startMode\": 1, \"state\": 1},\r\n \"name\": \"UIAPI\", \"state\": \"Started\"}, \"invocation\": {\"module_name\": \"win_iis_webapppool\"}}\r\n\r\nPLAY RECAP *********************************************************************\r\nServerName    : ok=1    changed=1    unreachable=0    failed=0\r\n```\r\n"}}
{"actor":{"display_login":"AseemKumar"}}