Problem scenario
You run an Ansible playbook on a server as a remote user that is a sudoer on that same server. But you get this error when you run the playbook: “sudo: a password is required\r\n”, “msg”: “MODULE FAILURE”, “rc”: 1}” How do you troubleshoot this error?
You want to run Bash scripts via Ansible playbooks. But these scripts will install packages and modify sensitive files.
…