瀏覽代碼

Update ansible.md

Nordstrand 3 年之前
父節點
當前提交
bdbb37bd5f
共有 1 個文件被更改,包括 1 次插入0 次删除
  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>]`
 - 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.
     - 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)
 - Get facts (with optional filter): `ansible all -i <host>, -m setup -a 'filter=ansible_os_*'` (example fact filter)
 
 
 ### Playbooks
 ### Playbooks