mirror of
https://github.com/lemeow125/Notes.git
synced 2024-11-17 04:09:26 +08:00
vault backup: 2024-10-25 16:30:38
Affected files: docs/Command Snippets/Ansible Snippets.md
This commit is contained in:
parent
d3f8b83a89
commit
71ede7ecbf
1 changed files with 4 additions and 2 deletions
|
@ -27,8 +27,10 @@ Install packages
|
||||||
ansible all -m apt -a name=vim --become --ask-become-pass
|
ansible all -m apt -a name=vim --become --ask-become-pass
|
||||||
```
|
```
|
||||||
Install/Update Package (multiple arguments)
|
Install/Update Package (multiple arguments)
|
||||||
```
|
|
||||||
Install packages
|
|
||||||
```bash
|
```bash
|
||||||
ansible all -m apt -a "name=vim state=latest" --become --ask-become-pass
|
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
|
||||||
|
```
|
Loading…
Reference in a new issue