Ansible non-root sudo user and “become” privilege escalation
问题 I've set up a box with a user david who has sudo privileges. I can ssh into the box and perform sudo operations like apt-get install . When I try to do the same thing using Ansible's "become privilege escalation", I get a permission denied error. So a simple playbook might look like this: simple_playbook.yml: --- - name: Testing... hosts: all become: true become_user: david become_method: sudo tasks: - name: Just want to install sqlite3 for example... apt: name=sqlite3 state=present I run