{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1418","repository_url":"https://api.github.com/repos/ansible/ansible-modules-extras","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1418/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1418/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1418/events","html_url":"https://github.com/ansible/ansible-modules-extras/issues/1418","id":123495231,"number":1418,"title":"Pear module hangs for module installs expecting answer(s)","user":{"login":"cmacrae","id":3392199,"avatar_url":"https://avatars.githubusercontent.com/u/3392199?v=3","gravatar_id":"","url":"https://api.github.com/users/cmacrae","html_url":"https://github.com/cmacrae","followers_url":"https://api.github.com/users/cmacrae/followers","following_url":"https://api.github.com/users/cmacrae/following{/other_user}","gists_url":"https://api.github.com/users/cmacrae/gists{/gist_id}","starred_url":"https://api.github.com/users/cmacrae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmacrae/subscriptions","organizations_url":"https://api.github.com/users/cmacrae/orgs","repos_url":"https://api.github.com/users/cmacrae/repos","events_url":"https://api.github.com/users/cmacrae/events{/privacy}","received_events_url":"https://api.github.com/users/cmacrae/received_events","type":"User","site_admin":false},"labels":[{"id":437719791,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/affects_2.0","name":"affects_2.0","color":"5319e7","default":false},{"id":132898023,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/bug_report","name":"bug_report","color":"fbca04","default":false},{"id":415779102,"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/waiting_on_maintainer","name":"waiting_on_maintainer","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2015-12-22T14:55:54Z","updated_at":"2016-11-18T09:39:17Z","closed_at":null,"body":"##### Issue Type:\n\nBug Report\n##### Ansible Version:\n\nRunning `ansible --version` reports: `2.0.0`\nBuilt from: `2.0.0-0.7.rc2` commit `cc98528ecbadaff6d2401207c0fa002607768216`\n##### Ansible Configuration:\n\nNo applicable settings\n##### Environment:\n\nControl node: Fedora 23\nDestination node: Centos 7\n##### Summary:\n\nThe `pear` module, for installing PHP modules via pear/pecl seems to hang when installing any modules that require input from the user at compile/install time.\nFor instance, I'm trying to deploy the `pecl/apc` module with the following task:\n\n``` yaml\n  - name: Ensure the APC PHP package is present via Pear\n    pear: name=pecl/apc state=present\n```\n\nThis task hangs indefinitely.\nIf you install `pecl/apc` via the shell, it will prompt for several inputs from the user, like so:\n\n```\ndownloading APC-3.1.13.tgz ...\nStarting to download APC-3.1.13.tgz (171,591 bytes)\n.....................................done: 171,591 bytes\n55 source files, building\nrunning: phpize\nConfiguring for:\nPHP Api Version:         20100412\nZend Module Api No:      20100525\nZend Extension Api No:   220100525\nEnable internal debugging in APC [no] :\nEnable per request file info about files used from the APC cache [no] :\nEnable spin locks (EXPERIMENTAL) [no] :\nEnable memory protection (EXPERIMENTAL) [no] :\nEnable pthread mutexes (default) [no] :\nEnable pthread read/write locks (EXPERIMENTAL) [yes] :\nbuilding in /var/tmp/pear-build-rootwfMfn6/APC-3.1.13\n....< *snip>....\n```\n\nHere, I had simply accepted the defaults.\n\nWhen Ansible runs with the above task, it issues the following command on the destination system:\n`/usr/bin/php -C -q -d include_path=/usr/share/pear -d date.timezone=UTC -d output_buffering=1 -d variables_order=EGPCS -d safe_mode=0 -d register_argc_argv=On -d open_basedir= -d auto_prepend_file= -d auto_append_file= /usr/share/pear/pearcmd.php install pecl/apc`\n\nAs stated previously, this process just hangs.\nInspecting the process by attaching with `strace` shows that it's waiting for user input (denoted by `read`):\n\n```\n[root@my-host ~]# strace -p 31801\nProcess 31801 attached\nread(0, \n```\n##### Steps To Reproduce:\n\nRun the following task:\n\n``` yaml\n  - name: Ensure the APC PHP package is present via Pear\n    pear: name=pecl/apc state=present\n```\n##### Expected Results:\n\nAnsible checks to see if the PHP module is present, if not, it installs it, regardless of needing user input (perhaps accepting the default options presented by the module would be the best approach here?).\n##### Actual Results:\n\nAnsible hangs indefinitely.\n##### Thanks\n\nThanks in advance for any help on this!\nPlease do let me know if I can provide any further information that'd be of help.\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/comments/261488877","html_url":"https://github.com/ansible/ansible-modules-extras/issues/1418#issuecomment-261488877","issue_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1418","id":261488877,"user":{"login":"ansibot","id":6585283,"avatar_url":"https://avatars.githubusercontent.com/u/6585283?v=3","gravatar_id":"","url":"https://api.github.com/users/ansibot","html_url":"https://github.com/ansibot","followers_url":"https://api.github.com/users/ansibot/followers","following_url":"https://api.github.com/users/ansibot/following{/other_user}","gists_url":"https://api.github.com/users/ansibot/gists{/gist_id}","starred_url":"https://api.github.com/users/ansibot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ansibot/subscriptions","organizations_url":"https://api.github.com/users/ansibot/orgs","repos_url":"https://api.github.com/users/ansibot/repos","events_url":"https://api.github.com/users/ansibot/events{/privacy}","received_events_url":"https://api.github.com/users/ansibot/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T09:39:17Z","updated_at":"2016-11-18T09:39:17Z","body":"@gentledevil, ping. This issue is still waiting on your response.\n[click here for bot help](https://github.com/ansible/ansibullbot/blob/master/ISSUE_HELP.md)\n<!--- boilerplate: issue_renotify_maintainer --->"}}
{"actor":{"display_login":"ansibot"}}