{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3365","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3365/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3365/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3365/events","html_url":"https://github.com/ansible/ansible-modules-extras/pull/3365","id":187425231,"number":3365,"title":"add option for path to pear executable","user":{"login":"mmckinst","id":1631365,"avatar_url":"https://avatars.githubusercontent.com/u/1631365?v=3","gravatar_id":"","url":"https://api.github.com/users/mmckinst","html_url":"https://github.com/mmckinst","followers_url":"https://api.github.com/users/mmckinst/followers","following_url":"https://api.github.com/users/mmckinst/following{/other_user}","gists_url":"https://api.github.com/users/mmckinst/gists{/gist_id}","starred_url":"https://api.github.com/users/mmckinst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmckinst/subscriptions","organizations_url":"https://api.github.com/users/mmckinst/orgs","repos_url":"https://api.github.com/users/mmckinst/repos","events_url":"https://api.github.com/users/mmckinst/events{/privacy}","received_events_url":"https://api.github.com/users/mmckinst/received_events","type":"User","site_admin":false},"labels":[{"id":132898176,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/feature_pull_request","name":"feature_pull_request","color":"006b75","default":false},{"id":132898227,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/needs_revision","name":"needs_revision","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-11-04T19:59:51Z","updated_at":"2016-11-22T11:25:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/pulls/3365","html_url":"https://github.com/ansible/ansible-modules-extras/pull/3365","diff_url":"https://github.com/ansible/ansible-modules-extras/pull/3365.diff","patch_url":"https://github.com/ansible/ansible-modules-extras/pull/3365.patch"},"body":"##### ISSUE TYPE\r\n\r\n - Feature Pull Request\r\n\r\n##### COMPONENT NAME\r\npear\r\n\r\n##### ANSIBLE VERSION\r\n```\r\nansible 2.3.0\r\n  config file = /etc/ansible/ansible.cfg\r\n  configured module search path = Default w/o overrides\r\n```\r\n\r\n##### SUMMARY\r\nThis allows you to specify a path to the pear executable. This is useful if you have multiple versions of PHP installed at once and need to install pecl modules for them. I've included a playbook showing its usefulness on a CentOS 7 machine using SCL RPMs but there are other methods.\r\n\r\n```yaml\r\n- hosts: localhost\r\n  tasks:\r\n    - name: install prereqs\r\n      package: name={{ item }}\r\n      with_items:\r\n        - epel-release\r\n        - centos-release-scl\r\n        - centos-release-scl-rh\r\n    - name: install packages \r\n      package: name={{ item }}\r\n      with_items:\r\n        - gcc-c++\r\n        - libssh2-devel\r\n        - php-pear\r\n        - php-devel\r\n        - rh-php56-php-pear\r\n        - rh-php56-php-devel\r\n    - name: install pecl-ssh2 for default PHP\r\n      pear:\r\n        name: pecl/ssh2\r\n    - name: install pecl-ssh2 for SCL php56\r\n      pear:\r\n        name: pecl/ssh2\r\n        executable: /opt/rh/rh-php56/root/usr/bin/pear\r\n```"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/262216721","html_url":"https://github.com/ansible/ansible-modules-extras/pull/3365#issuecomment-262216721","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/3365","id":262216721,"user":{"login":"gregdek","id":252125,"avatar_url":"https://avatars.githubusercontent.com/u/252125?v=3","gravatar_id":"","url":"https://api.github.com/users/gregdek","html_url":"https://github.com/gregdek","followers_url":"https://api.github.com/users/gregdek/followers","following_url":"https://api.github.com/users/gregdek/following{/other_user}","gists_url":"https://api.github.com/users/gregdek/gists{/gist_id}","starred_url":"https://api.github.com/users/gregdek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregdek/subscriptions","organizations_url":"https://api.github.com/users/gregdek/orgs","repos_url":"https://api.github.com/users/gregdek/repos","events_url":"https://api.github.com/users/gregdek/events{/privacy}","received_events_url":"https://api.github.com/users/gregdek/received_events","type":"User","site_admin":false},"created_at":"2016-11-22T11:25:37Z","updated_at":"2016-11-22T11:25:37Z","body":"Thanks @mmckinst for this PR. This PR requires revisions, either because it fails to build or by reviewer request. Please make the suggested revisions. When you are done, please comment with text 'ready_for_review' and we will put this PR back into review.\n\n[This message brought to you by your friendly Ansibull-bot.]"}}
{"actor":{"display_login":"gregdek"}}