mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
Fewer examples use connection: local in docs (#55133)
* Fewer connection: local lines in module examples and scenario guides The line 'connection: local' is not required. See ./docs/docsite/rst/inventory/implicit_localhost.rst
This commit is contained in:
parent
698d2454c7
commit
04220478da
4 changed files with 0 additions and 12 deletions
|
@ -18,7 +18,6 @@ Whereas classically ansible will execute tasks in its host loop against multiple
|
|||
In your playbook steps we'll typically be using the following pattern for provisioning steps::
|
||||
|
||||
- hosts: localhost
|
||||
connection: local
|
||||
gather_facts: False
|
||||
tasks:
|
||||
- ...
|
||||
|
@ -68,7 +67,6 @@ instance.::
|
|||
# demo_setup.yml
|
||||
|
||||
- hosts: localhost
|
||||
connection: local
|
||||
gather_facts: False
|
||||
|
||||
tasks:
|
||||
|
@ -94,7 +92,6 @@ From this, we'll use the add_host module to dynamically create a host group cons
|
|||
# demo_setup.yml
|
||||
|
||||
- hosts: localhost
|
||||
connection: local
|
||||
gather_facts: False
|
||||
|
||||
tasks:
|
||||
|
|
|
@ -88,7 +88,6 @@ you can use the following configuration:
|
|||
|
||||
- name: Create IP address
|
||||
hosts: localhost
|
||||
connection: local
|
||||
gather_facts: no
|
||||
|
||||
vars:
|
||||
|
@ -169,7 +168,6 @@ rest.
|
|||
- name: Create an instance
|
||||
hosts: localhost
|
||||
gather_facts: no
|
||||
connection: local
|
||||
vars:
|
||||
project: my-project
|
||||
auth_kind: serviceaccount
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue