{"action":"created","issue":{"url":"https://api.github.com/repos/cleanerbot/ansible-security/issues/81","repository_url":"https://api.github.com/repos/cleanerbot/ansible-security","labels_url":"https://api.github.com/repos/cleanerbot/ansible-security/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/cleanerbot/ansible-security/issues/81/comments","events_url":"https://api.github.com/repos/cleanerbot/ansible-security/issues/81/events","html_url":"https://github.com/cleanerbot/ansible-security/issues/81","id":163151997,"number":81,"title":"testing: add test for git-clonerepos.yml playbook","user":{"login":"sometheycallme","id":630113,"avatar_url":"https://avatars.githubusercontent.com/u/630113?v=3","gravatar_id":"","url":"https://api.github.com/users/sometheycallme","html_url":"https://github.com/sometheycallme","followers_url":"https://api.github.com/users/sometheycallme/followers","following_url":"https://api.github.com/users/sometheycallme/following{/other_user}","gists_url":"https://api.github.com/users/sometheycallme/gists{/gist_id}","starred_url":"https://api.github.com/users/sometheycallme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sometheycallme/subscriptions","organizations_url":"https://api.github.com/users/sometheycallme/orgs","repos_url":"https://api.github.com/users/sometheycallme/repos","events_url":"https://api.github.com/users/sometheycallme/events{/privacy}","received_events_url":"https://api.github.com/users/sometheycallme/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-06-30T12:21:08Z","updated_at":"2016-06-30T18:51:09Z","closed_at":null,"body":"@Jfach @jumanjiman @jwasserzug @vpalacio @greenpau\r\n\r\n#73 magic variable {{ inventory_dir }} works for vars_files in playbooks\r\n\r\n#80 os.putenv() works for creating ANSIBLE_HOSTS (the inventory_dir)\r\n\r\nIn server.py we use os.putenv() to create the staged directory with data passed from the contributor to the ansible-controller \r\n\r\n```python\r\n            command += \" {0}/{1}/{2}\".format(base_dir, safe_dir, playbook)\r\n            print command\r\n            # Use this to set ANSIBLE_HOSTS environment variable as base_dir, safe_dir\r\n            # root is hosts\r\n            os.putenv('ANSIBLE_HOSTS', \"{0}/{1}/hosts\".format(base_dir, safe_dir)\r\n            # change directory to contributors staged directory to run commands\r\n            os.chdir(\"/{0}/{1}\".format(base_dir, safe_dir))\r\n            os.system(command)\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/cleanerbot/ansible-security/issues/comments/229753751","html_url":"https://github.com/cleanerbot/ansible-security/issues/81#issuecomment-229753751","issue_url":"https://api.github.com/repos/cleanerbot/ansible-security/issues/81","id":229753751,"user":{"login":"sometheycallme","id":630113,"avatar_url":"https://avatars.githubusercontent.com/u/630113?v=3","gravatar_id":"","url":"https://api.github.com/users/sometheycallme","html_url":"https://github.com/sometheycallme","followers_url":"https://api.github.com/users/sometheycallme/followers","following_url":"https://api.github.com/users/sometheycallme/following{/other_user}","gists_url":"https://api.github.com/users/sometheycallme/gists{/gist_id}","starred_url":"https://api.github.com/users/sometheycallme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sometheycallme/subscriptions","organizations_url":"https://api.github.com/users/sometheycallme/orgs","repos_url":"https://api.github.com/users/sometheycallme/repos","events_url":"https://api.github.com/users/sometheycallme/events{/privacy}","received_events_url":"https://api.github.com/users/sometheycallme/received_events","type":"User","site_admin":false},"created_at":"2016-06-30T18:51:09Z","updated_at":"2016-06-30T18:51:09Z","body":">do you have a PR open for this one\r\n\r\n@greenpau - hi.\r\n\r\nSee this for WIP.\r\n\r\nhttps://github.com/cleanerbot/ansible-security/pull/83\r\n\r\n\r\n"}}
{"actor":{"display_login":"sometheycallme"}}