{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/455","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/455/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/455/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/455/events","html_url":"https://github.com/ansible/ansible-modules-extras/issues/455","id":73733261,"number":455,"title":"lvg is not idempotent -- attempts to create VG that already exists","user":{"login":"gtirloni","id":5902830,"avatar_url":"https://avatars.githubusercontent.com/u/5902830?v=3","gravatar_id":"","url":"https://api.github.com/users/gtirloni","html_url":"https://github.com/gtirloni","followers_url":"https://api.github.com/users/gtirloni/followers","following_url":"https://api.github.com/users/gtirloni/following{/other_user}","gists_url":"https://api.github.com/users/gtirloni/gists{/gist_id}","starred_url":"https://api.github.com/users/gtirloni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtirloni/subscriptions","organizations_url":"https://api.github.com/users/gtirloni/orgs","repos_url":"https://api.github.com/users/gtirloni/repos","events_url":"https://api.github.com/users/gtirloni/events{/privacy}","received_events_url":"https://api.github.com/users/gtirloni/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/P3","name":"P3","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-06T20:48:31Z","updated_at":"2015-08-11T14:26:39Z","closed_at":"2015-08-11T14:26:39Z","body":"**Issue Type:** Bug Report\r\n\r\n**Ansible Version:** 1.9.1\r\n\r\n**Environment:** CentOS 7.1 x86_64\r\n\r\n**Summary:** lvg module attempts to create volume group that already exists\r\n\r\n**Steps to Reproduce:**\r\n\r\n    - name: Create LVM VolumeGroup\r\n      lvg:\r\n        vg: \"something\"\r\n        state: present\r\n        pvs: \"/dev/md/something\"\r\n\r\nRun it twice.\r\n\r\n**Expected Result:** lvg module would detect VG already exists and be happy that \"state=present\" is satisfied.\r\n\r\n**Actual Results:** lvg module attempts to create VG and gets an error from vgcreate.\r\n\r\n    TASK: [lvm | Create LVM VolumeGroup] ****************************************** \r\n    failed: [prd] => {\"err\": \"  Can't initialize physical volume \\\"/dev/md/something\\\" of volume group \\\"something\\\" without -ff\\n\", \"failed\": true, \"rc\": 5}\r\n    msg: Creating physical volume '/dev/md/something' failed\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/129903855","html_url":"https://github.com/ansible/ansible-modules-extras/issues/455#issuecomment-129903855","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/455","id":129903855,"user":{"login":"gtirloni","id":5902830,"avatar_url":"https://avatars.githubusercontent.com/u/5902830?v=3","gravatar_id":"","url":"https://api.github.com/users/gtirloni","html_url":"https://github.com/gtirloni","followers_url":"https://api.github.com/users/gtirloni/followers","following_url":"https://api.github.com/users/gtirloni/following{/other_user}","gists_url":"https://api.github.com/users/gtirloni/gists{/gist_id}","starred_url":"https://api.github.com/users/gtirloni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtirloni/subscriptions","organizations_url":"https://api.github.com/users/gtirloni/orgs","repos_url":"https://api.github.com/users/gtirloni/repos","events_url":"https://api.github.com/users/gtirloni/events{/privacy}","received_events_url":"https://api.github.com/users/gtirloni/received_events","type":"User","site_admin":false},"created_at":"2015-08-11T14:26:39Z","updated_at":"2015-08-11T14:26:39Z","body":"Yep, thanks!"}}