{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible/issues/11758","labels_url":"https://api.github.com/repos/ansible/ansible/issues/11758/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible/issues/11758/comments","events_url":"https://api.github.com/repos/ansible/ansible/issues/11758/events","html_url":"https://github.com/ansible/ansible/issues/11758","id":97561673,"number":11758,"title":"problem running rax.py","user":{"login":"jkarneges","id":521953,"avatar_url":"https://avatars.githubusercontent.com/u/521953?v=3","gravatar_id":"","url":"https://api.github.com/users/jkarneges","html_url":"https://github.com/jkarneges","followers_url":"https://api.github.com/users/jkarneges/followers","following_url":"https://api.github.com/users/jkarneges/following{/other_user}","gists_url":"https://api.github.com/users/jkarneges/gists{/gist_id}","starred_url":"https://api.github.com/users/jkarneges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkarneges/subscriptions","organizations_url":"https://api.github.com/users/jkarneges/orgs","repos_url":"https://api.github.com/users/jkarneges/repos","events_url":"https://api.github.com/users/jkarneges/events{/privacy}","received_events_url":"https://api.github.com/users/jkarneges/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-27T21:49:45Z","updated_at":"2015-07-28T00:21:36Z","closed_at":null,"body":"I downloaded rax.py into an inventory directory and marked it executable:\r\n```\r\n$ ls -l inventory/\r\ntotal 16\r\n-rw-rw-r-- 1 justin justin   140 Jul 27 13:14 hosts\r\n-rwxrwxr-x 1 justin justin 11974 Jul 27 14:42 rax.py\r\n```\r\n(Note: the [docs](http://docs.ansible.com/ansible/guide_rax.html) don't actually say where to get the file, but after some googling I found it here [here](https://raw.githubusercontent.com/ansible/ansible/devel/lib/ansible/module_utils/rax.py).\r\n\r\nBut I get an error when trying to use it:\r\n```\r\n$ RAX_CREDS_FILE=raxcreds.conf ansible all -i inventory/ -m setup\r\nERROR: problem running /home/justin/tmp/inventory/rax.py --list ([Errno 8] Exec format error)\r\n```"},"comment":{"url":"https://api.github.com/repos/ansible/ansible/issues/comments/125384848","html_url":"https://github.com/ansible/ansible/issues/11758#issuecomment-125384848","issue_url":"https://api.github.com/repos/ansible/ansible/issues/11758","id":125384848,"user":{"login":"jkarneges","id":521953,"avatar_url":"https://avatars.githubusercontent.com/u/521953?v=3","gravatar_id":"","url":"https://api.github.com/users/jkarneges","html_url":"https://github.com/jkarneges","followers_url":"https://api.github.com/users/jkarneges/followers","following_url":"https://api.github.com/users/jkarneges/following{/other_user}","gists_url":"https://api.github.com/users/jkarneges/gists{/gist_id}","starred_url":"https://api.github.com/users/jkarneges/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkarneges/subscriptions","organizations_url":"https://api.github.com/users/jkarneges/orgs","repos_url":"https://api.github.com/users/jkarneges/repos","events_url":"https://api.github.com/users/jkarneges/events{/privacy}","received_events_url":"https://api.github.com/users/jkarneges/received_events","type":"User","site_admin":false},"created_at":"2015-07-28T00:21:36Z","updated_at":"2015-07-28T00:21:36Z","body":"Figured it out. Various links around the internet are incorrect now that v2 development takes place in the devel branch. Here's the link to rax.py that a stable version user will need:\r\nhttps://raw.githubusercontent.com/ansible/ansible/v1.9.2-1/plugins/inventory/rax.py"}}