{"action":"opened","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5751","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5751/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5751/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5751/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/5751","id":192069959,"number":5751,"title":" win_service trouble with Windows 2012R2","user":{"login":"tdjfr","id":5039882,"avatar_url":"https://avatars.githubusercontent.com/u/5039882?v=3","gravatar_id":"","url":"https://api.github.com/users/tdjfr","html_url":"https://github.com/tdjfr","followers_url":"https://api.github.com/users/tdjfr/followers","following_url":"https://api.github.com/users/tdjfr/following{/other_user}","gists_url":"https://api.github.com/users/tdjfr/gists{/gist_id}","starred_url":"https://api.github.com/users/tdjfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdjfr/subscriptions","organizations_url":"https://api.github.com/users/tdjfr/orgs","repos_url":"https://api.github.com/users/tdjfr/repos","events_url":"https://api.github.com/users/tdjfr/events{/privacy}","received_events_url":"https://api.github.com/users/tdjfr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-28T17:41:10Z","updated_at":"2016-11-28T17:41:10Z","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\r\n##### COMPONENT NAME\r\n<!--- win_service -->\r\n\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\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\n\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\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\n\r\nI want to start (or stop) service on Windows2012R2 server and take this error\r\nAn exception occurred during task execution. The full traceback is:\r\nAt C:\\Users\\Administrator\\AppData\\Local\\Temp\\ansible-tmp-1480354748.14-17345256285605\\win_service.ps1:296 char:5\r\n+     Set-Attr $result \"start_mode\" $svcMode.StartMode.ToLower()\r\n+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n\r\n\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: Start services\r\n  hosts: srv\r\n  vars:\r\n    services:\r\n      - 'service_name'\r\n  tasks:\r\n    - name: Start services\r\n      win_service:\r\n        name: '{{ services }}'\r\n        state: started\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\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with extra verbosity (-vvvv) -->\r\n\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\n\r\n```\r\n"}}
{"actor":{"display_login":"tdjfr"}}