mirror of
https://github.com/lemeow125/Notes.git
synced 2024-11-16 19:59:25 +08:00
vault backup: 2024-10-25 15:57:44
Affected files: docs/Command Snippets/Ansible Snippets.md
This commit is contained in:
parent
b829aac16c
commit
7284b10711
1 changed files with 8 additions and 2 deletions
|
@ -2,8 +2,14 @@ WSL Fix for world-writable directories
|
|||
```bash
|
||||
export ANSIBLE_CONFIG=./ansible.cfg
|
||||
```
|
||||
|
||||
Ping
|
||||
```bash
|
||||
ansible all -m ping
|
||||
```
|
||||
Gather facts
|
||||
```bash
|
||||
ansible all
|
||||
ansible all -m gather_facts
|
||||
|
||||
# Limit to one device
|
||||
ansible all -m gather_facts --limit ADDRESS
|
||||
```
|
Loading…
Reference in a new issue