Some ubuntu cloud images like this one: http://cloud-images.ubuntu.com/vagrant/precise/20140120/precise-server-cloudimg-amd64-vagrant-disk1.box
there is a file /etc/sudoers.d/vagrant, with the contents of vagrant ALL = (ALL) NOPASSWD: ALL
Other fields such as this https://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_ubuntu-13.10_chef-provisionerless.box
does not have it, and as a result, inaccessible commands with sudo_user do not work.
I can add a file using
- name: ensure Vagrant is a sudoer copy: content="vagrant ALL=(ALL) NOPASSWD:ALL" dest=/etc/sudoers.d/vagrant owner=root group=root sudo: yes
I am wondering if the tramp needs to do something, because this task will not be applied when starting an unoccupied play on a real (not vagrant) machine.
Vagrant , config.ssh.username = "root" , sudo. Bento Ubuntu /etc/sudoers.
config.ssh.username = "root"
sudo
, sudo_user, , /etc/sudoers. , Vagrant sudo . , sudoers.d.
, /etc/sudoers.d/, 0440 , , sudo .
Source: https://habr.com/ru/post/1531850/More articles:An easy way to determine the current processor mode on ARMv7-A - assemblyangularJS add table row (TR) inside ng-repeat - - angularjsTypeError: * .getMonth is not a function - javascriptMS SQL Server 2012 returns empty text? - sqlSQL Server text column affects results returned to classic ASP - sql-servermake concurrent RCURL GET requests for a set of URLs - rOptional line with indentation in git log format - gitClassic ASP SQL query returns two columns out of ten - sqlИспользование easy rsa, как автоматизировать процесс создания клиент/сервер - bashМониторинг поисковых запросов в Plone - searchAll Articles