diff --git a/docs/Command Snippets/Ansible Snippets.md b/docs/Command Snippets/Ansible Snippets.md index bc238bb..8073d5a 100644 --- a/docs/Command Snippets/Ansible Snippets.md +++ b/docs/Command Snippets/Ansible Snippets.md @@ -33,4 +33,8 @@ ansible all -m apt -a "name=vim state=latest" --become --ask-become-pass - `sudo apt update` equivalent ```bash ansible all -m apt -a "name=apt state=latest" --become --ask-become-pass +``` +- Specify `username` and `password` credentials when running a playbook +```bash +ansible-playbook roles/tasks/debian/setup.yml -u root -k ``` \ No newline at end of file