{"action":"created","issue":{"url":"https://api.github.com/repos/rvm/rvm1-ansible/issues/66","labels_url":"https://api.github.com/repos/rvm/rvm1-ansible/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/rvm/rvm1-ansible/issues/66/comments","events_url":"https://api.github.com/repos/rvm/rvm1-ansible/issues/66/events","html_url":"https://github.com/rvm/rvm1-ansible/issues/66","id":112527997,"number":66,"title":"user install hangs on user input","user":{"login":"ruudgrosmann","id":5494152,"avatar_url":"https://avatars.githubusercontent.com/u/5494152?v=3","gravatar_id":"","url":"https://api.github.com/users/ruudgrosmann","html_url":"https://github.com/ruudgrosmann","followers_url":"https://api.github.com/users/ruudgrosmann/followers","following_url":"https://api.github.com/users/ruudgrosmann/following{/other_user}","gists_url":"https://api.github.com/users/ruudgrosmann/gists{/gist_id}","starred_url":"https://api.github.com/users/ruudgrosmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruudgrosmann/subscriptions","organizations_url":"https://api.github.com/users/ruudgrosmann/orgs","repos_url":"https://api.github.com/users/ruudgrosmann/repos","events_url":"https://api.github.com/users/ruudgrosmann/events{/privacy}","received_events_url":"https://api.github.com/users/ruudgrosmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-21T07:34:40Z","updated_at":"2015-11-20T06:36:16Z","closed_at":null,"body":"hello,\r\nI try to use the ansible role rvm_io.rvm1-ruby to install rvm for a certain user. \r\n\r\n- role: rvm_io.rvm1-ruby\r\n      when: true\r\n      sudo: yes\r\n      rvm1_user: 'archief'\r\n      rvm1_rvm_version: 'stable'\r\n      rvm1_rvm_check_for_updates: false\r\n      rvm1_gpg_keys: ''\r\n      rvm1_rubies:\r\n        - 'ruby-1.9.3'\r\n      rvm1_install_flags: '--auto-dotfiles --user-install'\r\n      rvm1_install_path: '/home/archief/.rvm'          \r\n      environment:                                             \r\n        http_proxy:     http://172.22.7.136:8080\r\n        https_proxy:    https://172.22.7.136:80\r\n\r\nWhen doing 'install rubies' it hangs. When I run it manually, it appears it is waiting for the sudo password:\r\n\r\narchief@ubtest:~$ rvm install 1.9.3\r\nSearching for binary rubies, this might take some time.\r\nFound remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/14.04/x86_64/ruby-1.9.3-p551.tar.bz2\r\nChecking requirements for ubuntu. \r\nInstalling requirements for ubuntu.\r\nUpdating systemarchief password required for 'apt-get --quiet --yes update': ..-\r\narchief@ubtest:~$ \r\n\r\nI'd rather not make this user a sudoer without password, so I hope there is an alternative.\r\nThis could be: \r\n- not running with' sudo: yes' and doing the system requirements check beforehand, using the remote user that has provided a sudo password (what commands should I run then, is the apt-get in the rvm output sufficient?)\r\n- a way to provide the sudo password of the rvm_user\r\n\r\n\r\nAnother thing that troubled me is that the command initially really did nothing because of the fact the https-proxy had to be set. In the above example, the environment setting did nothing: the variable was not visible in the user shell. I worked around it by writing a .curlrc with the proxy setting first, but that only works with curl; I don't know if other processes need that proxy setting too. If so, is there a way to supply the ansible role with that system variable, similar to my try in the example above?\r\n\r\nregards, ruud\r\n"},"comment":{"url":"https://api.github.com/repos/rvm/rvm1-ansible/issues/comments/158295327","html_url":"https://github.com/rvm/rvm1-ansible/issues/66#issuecomment-158295327","issue_url":"https://api.github.com/repos/rvm/rvm1-ansible/issues/66","id":158295327,"user":{"login":"kraft001","id":983140,"avatar_url":"https://avatars.githubusercontent.com/u/983140?v=3","gravatar_id":"","url":"https://api.github.com/users/kraft001","html_url":"https://github.com/kraft001","followers_url":"https://api.github.com/users/kraft001/followers","following_url":"https://api.github.com/users/kraft001/following{/other_user}","gists_url":"https://api.github.com/users/kraft001/gists{/gist_id}","starred_url":"https://api.github.com/users/kraft001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kraft001/subscriptions","organizations_url":"https://api.github.com/users/kraft001/orgs","repos_url":"https://api.github.com/users/kraft001/repos","events_url":"https://api.github.com/users/kraft001/events{/privacy}","received_events_url":"https://api.github.com/users/kraft001/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T06:36:16Z","updated_at":"2015-11-20T06:36:16Z","body":"Related to issue #38 , but they only suggest making the sudoer passwordless\r\nI have the same issue and the same concerns, still looking for an answer"}}