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::
|
In your playbook steps we'll typically be using the following pattern for provisioning steps::
|
||||||
|
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
connection: local
|
|
||||||
gather_facts: False
|
gather_facts: False
|
||||||
tasks:
|
tasks:
|
||||||
- ...
|
- ...
|
||||||
|
@ -68,7 +67,6 @@ instance.::
|
||||||
# demo_setup.yml
|
# demo_setup.yml
|
||||||
|
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
connection: local
|
|
||||||
gather_facts: False
|
gather_facts: False
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
@ -94,7 +92,6 @@ From this, we'll use the add_host module to dynamically create a host group cons
|
||||||
# demo_setup.yml
|
# demo_setup.yml
|
||||||
|
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
connection: local
|
|
||||||
gather_facts: False
|
gather_facts: False
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
|
@ -88,7 +88,6 @@ you can use the following configuration:
|
||||||
|
|
||||||
- name: Create IP address
|
- name: Create IP address
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
connection: local
|
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
|
@ -169,7 +168,6 @@ rest.
|
||||||
- name: Create an instance
|
- name: Create an instance
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
connection: local
|
|
||||||
vars:
|
vars:
|
||||||
project: my-project
|
project: my-project
|
||||||
auth_kind: serviceaccount
|
auth_kind: serviceaccount
|
||||||
|
|
|
@ -431,7 +431,6 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: Terminate instances
|
- name: Terminate instances
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
connection: local
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Terminate instances that were previously launched
|
- name: Terminate instances that were previously launched
|
||||||
ec2:
|
ec2:
|
||||||
|
@ -444,7 +443,6 @@ EXAMPLES = '''
|
||||||
- name: Start sandbox instances
|
- name: Start sandbox instances
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
connection: local
|
|
||||||
vars:
|
vars:
|
||||||
instance_ids:
|
instance_ids:
|
||||||
- 'i-xxxxxx'
|
- 'i-xxxxxx'
|
||||||
|
@ -467,7 +465,6 @@ EXAMPLES = '''
|
||||||
- name: Stop sandbox instances
|
- name: Stop sandbox instances
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
connection: local
|
|
||||||
vars:
|
vars:
|
||||||
instance_ids:
|
instance_ids:
|
||||||
- 'i-xxxxxx'
|
- 'i-xxxxxx'
|
||||||
|
|
|
@ -165,7 +165,6 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: Run using a project directory
|
- name: Run using a project directory
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
connection: local
|
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
tasks:
|
tasks:
|
||||||
- docker_compose:
|
- docker_compose:
|
||||||
|
@ -220,7 +219,6 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: Scale the web service to 2
|
- name: Scale the web service to 2
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
connection: local
|
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
tasks:
|
tasks:
|
||||||
- docker_compose:
|
- docker_compose:
|
||||||
|
@ -234,7 +232,6 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: Run with inline v2 compose
|
- name: Run with inline v2 compose
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
connection: local
|
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
tasks:
|
tasks:
|
||||||
- docker_compose:
|
- docker_compose:
|
||||||
|
@ -269,7 +266,6 @@ EXAMPLES = '''
|
||||||
|
|
||||||
- name: Run with inline v1 compose
|
- name: Run with inline v1 compose
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
connection: local
|
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
tasks:
|
tasks:
|
||||||
- docker_compose:
|
- docker_compose:
|
||||||
|
|
Loading…
Reference in a new issue