-
-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
user install hangs on user input #66
Comments
Related to the issue #38 , but they only suggest making the sudoer passwordless |
My workaround was to do the system requirements check beforehand, so that this update (withh apt-get) will not be executed by the rvm-user, but rather by the user that has sudo rights (and with the password provided by typing it in). hope it helps, Ruud |
@wayneeseguin @sikachu @johnivanoff |
ok i see, there is an option to disable Automatic dependencies installation. take a look at rvm1-ansible README:
|
hello,
I try to use the ansible role rvm_io.rvm1-ruby to install rvm for a certain user.
when: true
sudo: yes
rvm1_user: 'archief'
rvm1_rvm_version: 'stable'
rvm1_rvm_check_for_updates: false
rvm1_gpg_keys: ''
rvm1_rubies:
- 'ruby-1.9.3'
rvm1_install_flags: '--auto-dotfiles --user-install'
rvm1_install_path: '/home/archief/.rvm'
environment:
http_proxy: http://172.22.7.136:8080
https_proxy: https://172.22.7.136:80
When doing 'install rubies' it hangs. When I run it manually, it appears it is waiting for the sudo password:
archief@ubtest:
$ rvm install 1.9.3$Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/14.04/x86_64/ruby-1.9.3-p551.tar.bz2
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating systemarchief password required for 'apt-get --quiet --yes update': ..-
archief@ubtest:
I'd rather not make this user a sudoer without password, so I hope there is an alternative.
This could be:
Another 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?
regards, ruud
The text was updated successfully, but these errors were encountered: