mirror of
https://github.com/lemeow125/Notes.git
synced 2024-11-16 19:59:25 +08:00
vault backup: 2024-10-28 22:02:58
Affected files: docs/Command Snippets/Ansible Snippets.md
This commit is contained in:
parent
69bffa4901
commit
d3c1c5cbcb
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
```
|
Loading…
Reference in a new issue