Closed ghost closed 7 years ago
I beg your pardon, the trouble is on my side.
In my box the vagrant account is sudoer with these specifications:
$> cat /etc/sudoers.d/vagrant
vagrant ALL=NOPASSWD:ALL
I had to correct like this:
$> cat /etc/sudoers.d/vagrant
vagrant ALL=(ALL) NOPASSWD:ALL
My context is to install RBENV for the well-known user Jenkins. This account is not a sudoer. And during the run launch with the sudoer account vagrant, the
become
triggers an error message "sudo: a password is required".Maybe I miss the point how to implement the role (see below).
My playbook: