From d3c1c5cbcb8419db06afdc33dc308eaae37e0e78 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Mon, 28 Oct 2024 22:02:58 +0800 Subject: [PATCH] vault backup: 2024-10-28 22:02:58 Affected files: docs/Command Snippets/Ansible Snippets.md --- docs/Command Snippets/Ansible Snippets.md | 4 ++++ 1 file changed, 4 insertions(+) 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