On 02.02.17 18:11 Paul Mackay wrote: > I'm testing on Ubuntu 16.04 with Ansible v2.2.1.0. I have a service > (re)start handler that has "become: yes" but it is reporting: > > Interactive authentication required.
Looks like it is asking for a password interactively. Be aware that "I can run the service start/restart commands on the remote box" is not the same as ansible running these commands. The passwordless sudo issue has been mentioned multiple times in the last couple of weeks. It is not enough to allow the ansible user to run one explicit command via passwordless sudo. Ansible is running a shell via sudo and doing all kinds of stuff. Better call the whole task or play with higher privileges. Johannes -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/2280240b-5260-b738-27b6-1e90e5e9e74e%40ojkastl.de. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature
