Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: sudo: password required #15

Closed
calbasi opened this issue Nov 23, 2021 · 0 comments
Closed

Error: sudo: password required #15

calbasi opened this issue Nov 23, 2021 · 0 comments

Comments

@calbasi
Copy link
Contributor

calbasi commented Nov 23, 2021

Ansible needs a sudo password to avoid this error:

TASK [install python for Ansible] ******************************************************************************************
fatal: [my_user@my_server]: FAILED! => {"changed": true, "msg": "non-zero return code", "rc": 1, "stderr": "Shared connection to my_server closed.\r\n", "stderr_lines": ["Shared connection to my_server closed."], "stdout": "sudo: es requereix una contrasenya\r\r\n", "stdout_lines": ["sudo: es requereix una contrasenya", ""]}

It can be managed with -K parameter:

ansible-playbook -i inventory/hosts lemmy.yml --become -K

calbasi added a commit to calbasi/lemmy-ansible that referenced this issue Nov 23, 2021
Avoid error like: https://lemmy.ml/post/79861 and solving issue LemmyNet#15
dessalines pushed a commit that referenced this issue Nov 23, 2021
Avoid error like: https://lemmy.ml/post/79861 and solving issue #15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants