ansible-apim icon indicating copy to clipboard operation
ansible-apim copied to clipboard

Missing sudo password in the scripts

Open rymonteiro opened this issue 6 years ago • 4 comments

Description: if you don't pass the parameter -K to run the playbook it fails with the message: Missing sudo password.

$ ansible-playbook -i dev site.yml ... TASK [common : Create group] **************************************************************************** fatal: [apim_1]: FAILED! => {"msg": "Missing sudo password"} fatal: [apim-is-as-km_1]: FAILED! => {"msg": "Missing sudo password"} fatal: [apim-analytics-worker_1]: FAILED! => {"msg": "Missing sudo password"}

Suggested Labels: Documentation

rymonteiro avatar Nov 07 '19 15:11 rymonteiro

@chirangaalwis Can we look into this and fix asap?

VimukthiPerera avatar Nov 27 '19 17:11 VimukthiPerera

The use of become is inconsistent/incomplete. If the playbook header would havebecome: true and an ansible.cfg file would have the become_method: sudo, then the setup is more portable to various environments. And it would be obvious to the user to enter the sudo password.

bbaassssiiee avatar Feb 23 '22 09:02 bbaassssiiee

The merged PR moved become_method to ansible.cfg and documents the use of -K.

bbaassssiiee avatar Feb 24 '22 05:02 bbaassssiiee

This issue can be closed?

bbaassssiiee avatar Mar 21 '22 10:03 bbaassssiiee