{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5593","repository_url":"https://api.github.com/repos/ansible/ansible-modules-core","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5593/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5593/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5593/events","html_url":"https://github.com/ansible/ansible-modules-core/issues/5593","id":189009574,"number":5593,"title":"redhat_subscription trying to register an already registered system","user":{"login":"elusiveity","id":1331183,"avatar_url":"https://avatars.githubusercontent.com/u/1331183?v=3","gravatar_id":"","url":"https://api.github.com/users/elusiveity","html_url":"https://github.com/elusiveity","followers_url":"https://api.github.com/users/elusiveity/followers","following_url":"https://api.github.com/users/elusiveity/following{/other_user}","gists_url":"https://api.github.com/users/elusiveity/gists{/gist_id}","starred_url":"https://api.github.com/users/elusiveity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elusiveity/subscriptions","organizations_url":"https://api.github.com/users/elusiveity/orgs","repos_url":"https://api.github.com/users/elusiveity/repos","events_url":"https://api.github.com/users/elusiveity/events{/privacy}","received_events_url":"https://api.github.com/users/elusiveity/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-14T01:10:49Z","updated_at":"2016-11-14T01:12:00Z","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<!--- Name of the plugin/module/task -->\r\nredhat_subscription\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##### 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\nNo additional configuration.\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\nAnsible host: RHEL7\r\nManaged node: RHEL7\r\n\r\n##### SUMMARY\r\n<!--- Explain the problem briefly -->\r\n\r\nTASK [Subscribing to RedHat] ***************************************************\r\nfatal: [hostname.local]: FAILED! => {\"changed\": false, \"cmd\": \"subscription-manager register --autosubscribe --username MyUsername --password '*******\", \"failed\": true, \"msg\": \"This system is already registered. Use --force to override\", \"rc\": 64, \"stderr\": \"This system is already registered. Use --force to override\\n\", \"stdout\": \"\", \"stdout_lines\": []}\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# cat server-specific/hostname-local.yml | grep subscription -a1\r\n    - name: Subscribing to RedHat\r\n      redhat_subscription: state=present username=MyUsername password=1234567 autosubscribe=true\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\nUp until recently, it reported that this play was okay. Now it's erroring with no change to that particular line in the config.\r\n\r\nIf system is already registered, it should report \"ok\" and not attempt to register.\r\n\r\n##### ACTUAL RESULTS\r\n<!--- What actually happened? If possible run with high verbosity (-vvvv) -->\r\n\r\nIt appears to be attempting to register the system which subsequently breaks the job.\r\n\r\n<!--- Paste verbatim command output between quotes below -->\r\n```\r\nidk what to put here sorry.\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/260227744","html_url":"https://github.com/ansible/ansible-modules-core/issues/5593#issuecomment-260227744","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/5593","id":260227744,"user":{"login":"elusiveity","id":1331183,"avatar_url":"https://avatars.githubusercontent.com/u/1331183?v=3","gravatar_id":"","url":"https://api.github.com/users/elusiveity","html_url":"https://github.com/elusiveity","followers_url":"https://api.github.com/users/elusiveity/followers","following_url":"https://api.github.com/users/elusiveity/following{/other_user}","gists_url":"https://api.github.com/users/elusiveity/gists{/gist_id}","starred_url":"https://api.github.com/users/elusiveity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elusiveity/subscriptions","organizations_url":"https://api.github.com/users/elusiveity/orgs","repos_url":"https://api.github.com/users/elusiveity/repos","events_url":"https://api.github.com/users/elusiveity/events{/privacy}","received_events_url":"https://api.github.com/users/elusiveity/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T01:12:00Z","updated_at":"2016-11-14T01:12:00Z","body":"Originally posted to ansible/ansible-modules-extras mistakenly. Since [#3361](https://github.com/ansible/ansible-modules-extras/issues/3361) I have noticed that it will sometimes error on a run, but will run after that run.\r\n\r\nToday, it has started failing with that error on every run.\r\n\r\n"}}
{"actor":{"display_login":"elusiveity"}}