D
D
DevLearn2020-05-11 01:22:08
Ansible
DevLearn, 2020-05-11 01:22:08

Ansible throws an error when executing the Ad-Hock command, what's the problem?

5eb88668ebf28530423621.png

Actually the error itself. What is the problem?
I'm running with sudo rights.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2020-05-11
@DevLearn

Add to command -K
from man ansible
-K, --ask-become-pass

M
mureevms, 2020-05-11
@mureevms

Russian language says "sudo: Password required". Those. either you need to connect under the root, or on each server to give the user the right to elevate privileges without a password. It is customary to do this: create a file /etc/sudoers.d/<user>with content<users> ALL = (ALL) NOPASSWD: ALL

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question