Answer the question
In order to leave comments, you need to log in
Ubuntu-server ansible non-interactive update?
Good afternoon. I want to roll updates to the virtual machines freshly installed from the template (about 150 pieces). Preferably with ansible. The essence of the problem is that in virtual machine images the modified sudoers file asks for confirmation of the update when updating. How can I install updates interactively?
Configuration file '/etc/sudoers'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** sudoers (Y/I/N/O/D/Z) [default=N] ?
Answer the question
In order to leave comments, you need to log in
Firstly, you don’t need to change the sudoers, you need to put your changes in the sudoers.d directory, but ansible leaves the old configs by default when updating the software
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question