Răsfoiți Sursa

Update ansible.md

Nordstrand 3 ani în urmă
părinte
comite
bdbb37bd5f
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      config/automation/ansible.md

+ 1 - 0
config/automation/ansible.md

@@ -12,6 +12,7 @@ breadcrumbs:
 
 - Run module for host: `ansible all -i <host>, -m <module> [-a <module-arg>]`
     - The comma after the host is required to treat it as a host list literal instead of an inventory file name.
+    - Use `-i localhost, --connection=local` to run locally.
 - Get facts (with optional filter): `ansible all -i <host>, -m setup -a 'filter=ansible_os_*'` (example fact filter)
 
 ### Playbooks