{"action":"created","issue":{"url":"https://api.github.com/repos/geerlingguy/ansible-for-devops/issues/32","repository_url":"https://api.github.com/repos/geerlingguy/ansible-for-devops","labels_url":"https://api.github.com/repos/geerlingguy/ansible-for-devops/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/geerlingguy/ansible-for-devops/issues/32/comments","events_url":"https://api.github.com/repos/geerlingguy/ansible-for-devops/issues/32/events","html_url":"https://github.com/geerlingguy/ansible-for-devops/issues/32","id":152201484,"number":32,"title":"Dynamic inventory with groups?","user":{"login":"holms","id":280958,"avatar_url":"https://avatars.githubusercontent.com/u/280958?v=3","gravatar_id":"","url":"https://api.github.com/users/holms","html_url":"https://github.com/holms","followers_url":"https://api.github.com/users/holms/followers","following_url":"https://api.github.com/users/holms/following{/other_user}","gists_url":"https://api.github.com/users/holms/gists{/gist_id}","starred_url":"https://api.github.com/users/holms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holms/subscriptions","organizations_url":"https://api.github.com/users/holms/orgs","repos_url":"https://api.github.com/users/holms/repos","events_url":"https://api.github.com/users/holms/events{/privacy}","received_events_url":"https://api.github.com/users/holms/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-01T14:19:45Z","updated_at":"2016-05-09T16:16:47Z","closed_at":null,"body":"Hi :) \r\n\r\nYou've showed how to create digital ocean droplets , but add_hosts doesn't generate inventory file. Dynamic inventory file won't have groups which you've specified on digital ocean playbook. So I'm completely puzzled how to create dynamic inventory file, which would move droplets to certains groups. Without this I can't do deployment of certain groups.  Also as without having groups we can't do anything at all with ansible. The only way I've would to accomplish this, is to modify digital_ocean.py dynamic inventory file, so that it would seek for \"group=\" variable in user-data, thought digital ocean API. User-data would be filled with group variable, when creating droplet. "},"comment":{"url":"https://api.github.com/repos/geerlingguy/ansible-for-devops/issues/comments/217912128","html_url":"https://github.com/geerlingguy/ansible-for-devops/issues/32#issuecomment-217912128","issue_url":"https://api.github.com/repos/geerlingguy/ansible-for-devops/issues/32","id":217912128,"user":{"login":"holms","id":280958,"avatar_url":"https://avatars.githubusercontent.com/u/280958?v=3","gravatar_id":"","url":"https://api.github.com/users/holms","html_url":"https://github.com/holms","followers_url":"https://api.github.com/users/holms/followers","following_url":"https://api.github.com/users/holms/following{/other_user}","gists_url":"https://api.github.com/users/holms/gists{/gist_id}","starred_url":"https://api.github.com/users/holms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holms/subscriptions","organizations_url":"https://api.github.com/users/holms/orgs","repos_url":"https://api.github.com/users/holms/repos","events_url":"https://api.github.com/users/holms/events{/privacy}","received_events_url":"https://api.github.com/users/holms/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T16:16:47Z","updated_at":"2016-05-09T16:16:47Z","body":"Thanks I've bought it in Apple Store"}}