mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00: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:
committed by
Alicia Cozine
parent
698d2454c7
commit
04220478da
@@ -431,7 +431,6 @@ EXAMPLES = '''
|
||||
|
||||
- name: Terminate instances
|
||||
hosts: localhost
|
||||
connection: local
|
||||
tasks:
|
||||
- name: Terminate instances that were previously launched
|
||||
ec2:
|
||||
@@ -444,7 +443,6 @@ EXAMPLES = '''
|
||||
- name: Start sandbox instances
|
||||
hosts: localhost
|
||||
gather_facts: false
|
||||
connection: local
|
||||
vars:
|
||||
instance_ids:
|
||||
- 'i-xxxxxx'
|
||||
@@ -467,7 +465,6 @@ EXAMPLES = '''
|
||||
- name: Stop sandbox instances
|
||||
hosts: localhost
|
||||
gather_facts: false
|
||||
connection: local
|
||||
vars:
|
||||
instance_ids:
|
||||
- 'i-xxxxxx'
|
||||
|
||||
@@ -165,7 +165,6 @@ EXAMPLES = '''
|
||||
|
||||
- name: Run using a project directory
|
||||
hosts: localhost
|
||||
connection: local
|
||||
gather_facts: no
|
||||
tasks:
|
||||
- docker_compose:
|
||||
@@ -220,7 +219,6 @@ EXAMPLES = '''
|
||||
|
||||
- name: Scale the web service to 2
|
||||
hosts: localhost
|
||||
connection: local
|
||||
gather_facts: no
|
||||
tasks:
|
||||
- docker_compose:
|
||||
@@ -234,7 +232,6 @@ EXAMPLES = '''
|
||||
|
||||
- name: Run with inline v2 compose
|
||||
hosts: localhost
|
||||
connection: local
|
||||
gather_facts: no
|
||||
tasks:
|
||||
- docker_compose:
|
||||
@@ -269,7 +266,6 @@ EXAMPLES = '''
|
||||
|
||||
- name: Run with inline v1 compose
|
||||
hosts: localhost
|
||||
connection: local
|
||||
gather_facts: no
|
||||
tasks:
|
||||
- docker_compose:
|
||||
|
||||
Reference in New Issue
Block a user