{"action":"created","issue":{"url":"https://api.github.com/repos/phansible/phansible/issues/182","labels_url":"https://api.github.com/repos/phansible/phansible/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/phansible/phansible/issues/182/comments","events_url":"https://api.github.com/repos/phansible/phansible/issues/182/events","html_url":"https://github.com/phansible/phansible/issues/182","id":53735244,"number":182,"title":"Unable to install composer due to missing `php5-json`","user":{"login":"NigelGreenway","id":2984008,"avatar_url":"https://avatars.githubusercontent.com/u/2984008?v=3","gravatar_id":"","url":"https://api.github.com/users/NigelGreenway","html_url":"https://github.com/NigelGreenway","followers_url":"https://api.github.com/users/NigelGreenway/followers","following_url":"https://api.github.com/users/NigelGreenway/following{/other_user}","gists_url":"https://api.github.com/users/NigelGreenway/gists{/gist_id}","starred_url":"https://api.github.com/users/NigelGreenway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NigelGreenway/subscriptions","organizations_url":"https://api.github.com/users/NigelGreenway/orgs","repos_url":"https://api.github.com/users/NigelGreenway/repos","events_url":"https://api.github.com/users/NigelGreenway/events{/privacy}","received_events_url":"https://api.github.com/users/NigelGreenway/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phansible/phansible/labels/Needs%20confirmation","name":"Needs confirmation","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-08T10:25:13Z","updated_at":"2015-02-19T08:37:19Z","closed_at":null,"body":"Hi,\r\n\r\nI have just tried to run my Phansible script and come across the following error when adding composer to my playbook.\r\n\r\nTo fix this I have added `php5-json` to my `common` var file and moved `phpcommon` role above `composer`. I noticed that `php5-json` is not within the PHP dropdown list.\r\n\r\nWas not sure about creating a pull request due to how it would be fixed. I was thinking that if composer was selected, the `php5-json` would be added to the selected options for the PHP modules?\r\n\r\n\r\n```\r\nTASK: [composer | Install Composer] ******************************************* \r\nfailed: [192.168.33.15] => {\"changed\": true, \"cmd\": \"curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer\", \"delta\": \"0:00:00.462498\", \"end\": \"2015-01-08 10:13:50.763390\", \r\n\"rc\": 1, \"start\": \"2015-01-08 10:13:50.300892\", \"warnings\": [\"Consider using get_url module rather than running curl\"]}\r\nstdout: #!/usr/bin/env php\r\nSome settings on your machine make Composer unable to work properly.\r\nMake sure that you fix the issues listed below and run this script again:\r\n\r\nThe json extension is missing.\r\nInstall it or recompile php without --disable-json\r\n\r\nFATAL: all hosts have already failed -- aborting\r\n```"},"comment":{"url":"https://api.github.com/repos/phansible/phansible/issues/comments/75015053","html_url":"https://github.com/phansible/phansible/issues/182#issuecomment-75015053","issue_url":"https://api.github.com/repos/phansible/phansible/issues/182","id":75015053,"user":{"login":"NigelGreenway","id":2984008,"avatar_url":"https://avatars.githubusercontent.com/u/2984008?v=3","gravatar_id":"","url":"https://api.github.com/users/NigelGreenway","html_url":"https://github.com/NigelGreenway","followers_url":"https://api.github.com/users/NigelGreenway/followers","following_url":"https://api.github.com/users/NigelGreenway/following{/other_user}","gists_url":"https://api.github.com/users/NigelGreenway/gists{/gist_id}","starred_url":"https://api.github.com/users/NigelGreenway/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NigelGreenway/subscriptions","organizations_url":"https://api.github.com/users/NigelGreenway/orgs","repos_url":"https://api.github.com/users/NigelGreenway/repos","events_url":"https://api.github.com/users/NigelGreenway/events{/privacy}","received_events_url":"https://api.github.com/users/NigelGreenway/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T08:37:19Z","updated_at":"2015-02-19T08:37:19Z","body":"If I get chance, I will try this again over the weekend and report back with any differences or errors."}}