You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same problem here in an Ubuntu machine in Digital Ocean
Doing sudo_user: 'user' made no difference.
I'm installing RVM for a user that is not sudoer but connecting with root and using sudo_user to change to that user. Then I suppose that when RVM is installed it can't change back to root to install dependencies.
The same problem happens when you make the user sudoer but he needs a password.
The task runs flawlessly for me if I before applying the role I do the following
- name: Make the user sudoer with no password
lineinfile: "dest=/etc/sudoers state=present regexp='^%myuser' line='%myuser ALL=(ALL) NOPASSWD: ALL'"
Unfortunately I could not find any way of asking rvm about which packages it needs to install them before using root user. Also I can't think of a way to issue a warning.
I have playbook:
I try to execute
and RVM log shows installation process stops and waits for password
When I try to install ruby without
the Ruby installs fine, but TASK: [rvm_io.rvm1-ruby | Select default ruby] failed with Permission denied because ~/.rvm belongs to root
The text was updated successfully, but these errors were encountered: