From 7284b107115ade835ccadb1f2bad849ed71a7e49 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Fri, 25 Oct 2024 15:57:44 +0800 Subject: [PATCH] vault backup: 2024-10-25 15:57:44 Affected files: docs/Command Snippets/Ansible Snippets.md --- docs/Command Snippets/Ansible Snippets.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/Command Snippets/Ansible Snippets.md b/docs/Command Snippets/Ansible Snippets.md index 92a8429..20d9b18 100644 --- a/docs/Command Snippets/Ansible Snippets.md +++ b/docs/Command Snippets/Ansible Snippets.md @@ -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 ``` \ No newline at end of file