mirror of
https://github.com/lemeow125/Notes.git
synced 2024-11-17 04:09:26 +08:00
vault backup: 2024-10-25 16:21:38
Affected files: docs/Command Snippets/Ansible Snippets.md
This commit is contained in:
parent
31a2b852d6
commit
1853d06b01
1 changed files with 6 additions and 0 deletions
|
@ -25,4 +25,10 @@ ansible all -m apt -a update_cache=true --become --ask-become-me-pass
|
||||||
Install packages
|
Install packages
|
||||||
```bash
|
```bash
|
||||||
ansible all -m apt -a name=vim --become --ask-become-pass
|
ansible all -m apt -a name=vim --become --ask-become-pass
|
||||||
|
```
|
||||||
|
Install/Update Packages (multiple arguments)
|
||||||
|
```
|
||||||
|
Install packages
|
||||||
|
```bash
|
||||||
|
ansible all -m apt -a "name=vim,nginx" --become --ask-become-pass
|
||||||
```
|
```
|
Loading…
Reference in a new issue