Skip to content

Commit b89cb95

Browse files
Akasurdegundalow
authored andcommitted
Fix spelling mistakes (comments only) (ansible#25564)
Original Author : klemens <[email protected]> Taking over previous PR as per ansible#23644 (comment) Signed-off-by: Abhijeet Kasurde <[email protected]>
1 parent 460d932 commit b89cb95

File tree

158 files changed

+202
-201
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+202
-201
lines changed

CHANGELOG.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ Module fixes:
11951195
running rsync. In 1.9.x and previous, sudo was run on the host that rsync
11961196
connected to. 2.0.1 restores the 1.9.x behaviour.
11971197
* Additionally, several other problems with where synchronize chose to run when
1198-
combined with delegate_to were fixed. In particular, if a playbook targetted
1198+
combined with delegate_to were fixed. In particular, if a playbook targeted
11991199
localhost and then delegated_to a remote host the prior behavior (in 1.9.x
12001200
and 2.0.0.x) was to copy files between the src and destination directories on
12011201
the delegated host. This has now been fixed to copy between localhost and
@@ -2728,7 +2728,7 @@ the variable is still registered for the host, with the attribute skipped: True.
27282728
* added basename and dirname as Jinja2 filters available to all templates
27292729
* pip works better when sudoing from unprivileged users
27302730
* fix for user creation with groups specification reporting 'changed' incorrectly in some cases
2731-
* fix for some unicode encoding errors in outputing some data in verbose mode
2731+
* fix for some unicode encoding errors in outputting some data in verbose mode
27322732
* improved FreeBSD, NetBSD and Solaris facts
27332733
* debug module always outputs data without having to specify -v
27342734
* fix for sysctl module creating new keys (must specify checks=none)
@@ -3102,7 +3102,7 @@ New Modules:
31023102
* new LSB facts (release, distro, etc)
31033103
* pause module -- (pause seconds=10) (pause minutes=1) (pause prompt=foo) -- it's an action plugin
31043104
* a module for adding entries to the main crontab (though you may still wish to just drop template files into cron.d)
3105-
* debug module can be used for outputing messages without using 'shell echo'
3105+
* debug module can be used for outputting messages without using 'shell echo'
31063106
* a fail module is now available for causing errors, you might want to use it with only_if to fail in certain conditions
31073107

31083108
Other module Changes, Upgrades, and Fixes:

contrib/inventory/apstra_aos.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
2828
To use this:
2929
- copy this file over /etc/ansible/hosts and chmod +x the file.
30-
- Copy both files (.py and .ini) in your prefered directory
30+
- Copy both files (.py and .ini) in your preferred directory
3131
3232
More information about Ansible Dynamic Inventory here
3333
http://unix.stackexchange.com/questions/205479/in-ansible-dynamic-inventory-json-can-i-render-hostvars-based-on-the-hostname

contrib/inventory/ec2.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
export AWS_ACCESS_KEY_ID='AK123'
1313
export AWS_SECRET_ACCESS_KEY='abc123'
1414
15-
optional region environement variable if region is 'auto'
15+
optional region environment variable if region is 'auto'
1616
1717
This script also assumes there is an ec2.ini file alongside it. To specify a
1818
different path to ec2.ini, define the EC2_INI_PATH environment variable:
@@ -723,7 +723,7 @@ def get_elasticache_clusters_by_region(self, region):
723723
''' Makes an AWS API call to the list of ElastiCache clusters (with
724724
nodes' info) in a particular region.'''
725725

726-
# ElastiCache boto module doesn't provide a get_all_intances method,
726+
# ElastiCache boto module doesn't provide a get_all_instances method,
727727
# that's why we need to call describe directly (it would be called by
728728
# the shorthand method anyway...)
729729
try:
@@ -759,7 +759,7 @@ def get_elasticache_replication_groups_by_region(self, region):
759759
''' Makes an AWS API call to the list of ElastiCache replication groups
760760
in a particular region.'''
761761

762-
# ElastiCache boto module doesn't provide a get_all_intances method,
762+
# ElastiCache boto module doesn't provide a get_all_instances method,
763763
# that's why we need to call describe directly (it would be called by
764764
# the shorthand method anyway...)
765765
try:

contrib/inventory/nagios_livestatus.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# default field group for host: groups
2020
# Uncomment to override:
2121
# group_field=state
22-
# default fields retrieved: address, alias, display_name, childs, parents
22+
# default fields retrieved: address, alias, display_name, children, parents
2323
# To override, uncomment the following line
2424
# fields_to_retrieve=address,alias,display_name
2525
#

docs/bin/generate_man.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def opts_docs(cli, name):
9494
myclass = "%sCLI" % libname.capitalize()
9595
output[libname] = 'ansible-%s.1.asciidoc.in' % libname
9696

97-
# instanciate each cli and ask its options
97+
# instantiate each cli and ask its options
9898
mycli = getattr(__import__("ansible.cli.%s" % libname, fromlist=[myclass]), myclass)
9999
cli_object = mycli([])
100100
try:

docs/docsite/rst/dev_guide/developing_modules_in_groups.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Although it's tempting to get straight into coding, there are a few things to be
2929
* Although not required, unit and/or integration tests are strongly recommended. Unit tests are especially valuable when external resources (such as cloud or network devices) are required. For more information see :doc:`testing` and the `Testing Working Group <https://github.com/ansible/community/blob/master/MEETINGS.md>`_.
3030
* Starting with Ansible 2.4 all :doc:`../list_of_network_modules` MUST have unit tests.
3131

32+
3233
Naming Convention
3334
`````````````````
3435

@@ -142,7 +143,7 @@ We realise this may be your first use of Git or GitHub. The following guides may
142143
* `How to sync (update) your fork <https://help.github.com/articles/syncing-a-fork/>`_
143144
* `How to create a Pull Request (PR) <https://help.github.com/articles/about-pull-requests/>`_
144145

145-
Please note that in the Ansible Git Repo the main branch is called ``devel`` rather than ``master``, which is used in the offical GitHub documentation
146+
Please note that in the Ansible Git Repo the main branch is called ``devel`` rather than ``master``, which is used in the official GitHub documentation
146147

147148
After your first PR has been merged ensure you "sync your fork" with ``ansible/ansible`` to ensure you've pulled in the directory structure and and shared code or documentation previously created.
148149

docs/docsite/rst/intro_networking.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ Ansible allows you to use conditionals to control the flow of your playbooks. An
169169
* contains - Object contains specified item
170170

171171

172-
Conditional statements evalute the results from the commands that are
172+
Conditional statements evaluate the results from the commands that are
173173
executed remotely on the device. Once the task executes the command
174-
set, the waitfor argument can be used to evalute the results before
174+
set, the waitfor argument can be used to evaluate the results before
175175
returning control to the Ansible playbook.
176176

177177
For example::

docs/docsite/rst/intro_windows.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ At the prompt you can quickly start using the Ansible devel branch by running th
5555
git clone https://github.com/ansible/ansible.git
5656
source ansible/hacking/env-setup
5757

58-
After you've successfully run these commands, you can start to create your inventory, write example playbooks and start targetting systems using the plethora of available Windows modules.
58+
After you've successfully run these commands, you can start to create your inventory, write example playbooks and start targeting systems using the plethora of available Windows modules.
5959

6060
.. Note:: Ansible is also reported to work on Cygwin, but this is more cumbersome and doesn't scale as well as WSL.
6161

@@ -469,7 +469,7 @@ You may wind up with a more readable playbook by using the PowerShell equivalent
469469
- name: Move file on remote Windows Server from one location to another
470470
win_command: Powershell.exe "Move-Item C:\teststuff\myfile.conf C:\builds\smtp.conf"
471471

472-
Bear in mind that using ``win_command`` or ``win_shell`` will always report ``changed``, and it is your responsiblity to ensure PowerShell will need to handle idempotency as appropriate (the move examples above are inherently not idempotent), so where possible use (or write) a module.
472+
Bear in mind that using ``win_command`` or ``win_shell`` will always report ``changed``, and it is your responsibility to ensure PowerShell will need to handle idempotency as appropriate (the move examples above are inherently not idempotent), so where possible use (or write) a module.
473473

474474
Here's an example of how to use the ``win_stat`` module to test for file existence. Note that the data returned by the ``win_stat`` module is slightly different than what is provided by the Linux equivalent::
475475

docs/docsite/rst/modules_support.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Module Support
33

44
.. toctree:: :maxdepth: 1
55

6-
Ansible has many modules, but not all of them are maintained by the core project commiters. Each module should have associated metadata that indicates which of the following categories they fall into. This should be visible in each module's documentation.
6+
Ansible has many modules, but not all of them are maintained by the core project committers. Each module should have associated metadata that indicates which of the following categories they fall into. This should be visible in each module's documentation.
77

88
Documentation updates for each module can also be edited directly in the module and by submitting a pull request to the module source code; just look for the "DOCUMENTATION" block in the source tree.
99

docs/docsite/rst/playbooks_lookups.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ Since there are too many parameters for this lookup method, below is a sample pl
473473

474474
#optional query parameters
475475
#we accept any parameter from the normal mongodb query.
476-
# the offical documentation is here
476+
# the official documentation is here
477477
# https://api.mongodb.org/python/current/api/pymongo/collection.html?highlight=find#pymongo.collection.Collection.find
478478
# filter: { "hostname": "batman" }
479479
projection: { "pid": True , "_id" : False , "hostname" : True }

examples/hosts.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
## beta.example.org:
4646

4747
# Ex 4: all vars
48-
# keeping withing 'all' group you can define common 'all' vars here with lowest precedence
48+
# keeping within 'all' group you can define common 'all' vars here with lowest precedence
4949

5050
## vars:
5151
## commontoall: thisvar

examples/scripts/ConfigureRemotingForAnsible.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# a 10-year valid certificate.
1717
#
1818
# Use option -ForceNewSSLCert if the system has been SysPreped and a new
19-
# SSL Certifcate must be forced on the WinRM Listener when re-running this
19+
# SSL Certificate must be forced on the WinRM Listener when re-running this
2020
# script. This is necessary when a new SID and CN name is created.
2121
#
2222
# Use option -SkipNetworkProfileCheck to skip the network profile check.

hacking/metadata-tool.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def write_metadata(filename, new_metadata, version=None, overwrite=False):
398398
raise ParseError('Could not add metadata to {}'.format(filename))
399399

400400
if current_metadata is None:
401-
# No curent metadata so we can just add it
401+
# No current metadata so we can just add it
402402
start_line = find_documentation(module_data)
403403
if start_line < 0:
404404
if os.path.basename(filename) in NONMODULE_PY_FILES:

lib/ansible/cli/vault.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def run(self):
148148
self.b_new_vault_pass = CLI.read_vault_password_file(self.options.new_vault_password_file, loader)
149149

150150
if not self.b_vault_pass or self.options.ask_vault_pass:
151-
# the 'read' options dont need to ask for password confirmation.
151+
# the 'read' options don't need to ask for password confirmation.
152152
# 'edit' is read/write, but the decrypt will confirm.
153153
if self.action in ['decrypt', 'edit', 'view', 'rekey']:
154154
self.b_vault_pass = self.ask_vault_passwords()
@@ -213,7 +213,7 @@ def execute_encrypt_string(self):
213213
b_plaintext_list = []
214214

215215
# remove the non-option '-' arg (used to indicate 'read from stdin') from the candidate args so
216-
# we dont add it to the plaintext list
216+
# we don't add it to the plaintext list
217217
args = [x for x in self.args if x != '-']
218218

219219
# We can prompt and read input, or read from stdin, but not both.
@@ -298,7 +298,7 @@ def execute_encrypt_string(self):
298298
# TODO: offer block or string ala eyaml
299299

300300
def _format_output_vault_strings(self, b_plaintext_list):
301-
# If we are only showing one item in the output, we dont need to included commented
301+
# If we are only showing one item in the output, we don't need to included commented
302302
# delimiters in the text
303303
show_delimiter = False
304304
if len(b_plaintext_list) > 1:

lib/ansible/executor/play_iterator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def _get_next_task_from_state(self, state, host, peek, in_child=False):
331331

332332
# First, we check for a child task state that is not failed, and if we
333333
# have one recurse into it for the next task. If we're done with the child
334-
# state, we clear it and drop back to geting the next task from the list.
334+
# state, we clear it and drop back to getting the next task from the list.
335335
if state.tasks_child_state:
336336
(state.tasks_child_state, task) = self._get_next_task_from_state(state.tasks_child_state, host=host, peek=peek, in_child=True)
337337
if self._check_failed_state(state.tasks_child_state):

lib/ansible/module_utils/ovirt.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ def create(
550550
)
551551
self.post_update(entity)
552552

553-
# Update diffs only if user specified --diff paramter,
553+
# Update diffs only if user specified --diff parameter,
554554
# so we don't useless overload API:
555555
if self._module._diff:
556556
before = get_dict_of_struct(

lib/ansible/module_utils/service.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def get_sysv_script(name):
6767
def sysv_exists(name):
6868
'''
6969
This function will return True or False depending on
70-
the existance of an init script corresponding to the service name supplied.
70+
the existence of an init script corresponding to the service name supplied.
7171
7272
:arg name: name of the service to test for
7373
'''
@@ -93,7 +93,7 @@ def fail_if_missing(module, found, service, msg=''):
9393

9494
def daemonize(module, cmd):
9595
'''
96-
Execute a command while detaching as a deamon, returns rc, stdout, and stderr.
96+
Execute a command while detaching as a daemon, returns rc, stdout, and stderr.
9797
9898
:arg module: is an AnsbileModule object, used for it's utility methods
9999
:arg cmd: is a list or string representing the command and options to run

lib/ansible/module_utils/urls.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def generic_urlparse(parts):
468468
# so remove it and convert the port to an integer
469469
port = int(port[1:])
470470
if auth:
471-
# the capture group above inclues the @, so remove it
471+
# the capture group above includes the @, so remove it
472472
# and then split it up based on the first ':' found
473473
auth = auth[:-1]
474474
username, password = auth.split(':', 1)

lib/ansible/modules/cloud/amazon/ec2_group.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
description:
4646
- List of firewall inbound rules to enforce in this group (see example). If none are supplied,
4747
no inbound rules will be enabled. Rules list may include its own name in `group_name`.
48-
This allows idempotent loopback additions (e.g. allow group to acccess itself).
48+
This allows idempotent loopback additions (e.g. allow group to access itself).
4949
Rule sources list support was added in version 2.4. This allows to define multiple sources per
5050
source type as well as multiple source types per rule. Prior to 2.4 an individual source is allowed.
5151
required: false

lib/ansible/modules/cloud/amazon/ec2_vpc_route_table.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
lookup:
3131
description:
3232
- "Look up route table by either tags or by route table ID. Non-unique tag lookup will fail.
33-
If no tags are specifed then no lookup for an existing route table is performed and a new
33+
If no tags are specified then no lookup for an existing route table is performed and a new
3434
route table will be created. To change tags of a route table or delete a route table,
3535
you must look up by id."
3636
required: false

lib/ansible/modules/cloud/amazon/s3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
bucket: mybucket
254254
mode: delete
255255
256-
- name: GET an object but dont download if the file checksums match. New in 2.0
256+
- name: GET an object but don't download if the file checksums match. New in 2.0
257257
s3:
258258
bucket: mybucket
259259
object: /my/desired/key.txt

lib/ansible/modules/cloud/amazon/sns.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def main():
207207
"the 'json' message_structure.")
208208

209209
# .publish() takes full ARN topic id, but I'm lazy and type shortnames
210-
# so do a lookup (topics cannot contain ':', so thats the decider)
210+
# so do a lookup (topics cannot contain ':', so that's the decider)
211211
if ':' in topic:
212212
arn_topic = topic
213213
else:

lib/ansible/modules/cloud/cloudstack/cs_instance.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ def expunge_instance(self):
872872

873873
def stop_instance(self):
874874
instance = self.get_instance()
875-
# in check mode intance may not be instanciated
875+
# in check mode instance may not be instanciated
876876
if instance:
877877
if instance['state'].lower() in ['stopping', 'stopped']:
878878
return instance
@@ -893,7 +893,7 @@ def stop_instance(self):
893893

894894
def start_instance(self):
895895
instance = self.get_instance()
896-
# in check mode intance may not be instanciated
896+
# in check mode instance may not be instanciated
897897
if instance:
898898
if instance['state'].lower() in ['starting', 'running']:
899899
return instance
@@ -914,7 +914,7 @@ def start_instance(self):
914914

915915
def restart_instance(self):
916916
instance = self.get_instance()
917-
# in check mode intance may not be instanciated
917+
# in check mode instance may not be instanciated
918918
if instance:
919919
if instance['state'].lower() in [ 'running', 'starting' ]:
920920
self.result['changed'] = True
@@ -936,7 +936,7 @@ def restart_instance(self):
936936
def restore_instance(self):
937937
instance = self.get_instance()
938938
self.result['changed'] = True
939-
# in check mode intance may not be instanciated
939+
# in check mode instance may not be instanciated
940940
if instance:
941941
args = {}
942942
args['templateid'] = self.get_template_or_iso(key='id')

lib/ansible/modules/cloud/cloudstack/cs_loadbalancer_rule_member.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
'''
8383

8484
EXAMPLES = '''
85-
# Add VMs to an exising load balancer
85+
# Add VMs to an existing load balancer
8686
- local_action:
8787
module: cs_loadbalancer_rule_member
8888
name: balance_http

lib/ansible/modules/cloud/cloudstack/cs_pod.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
required: true
3939
id:
4040
description:
41-
- uuid of the exising pod.
41+
- uuid of the existing pod.
4242
default: null
4343
required: false
4444
start_ip:

lib/ansible/modules/cloud/cloudstack/cs_vpc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
type: boolean
162162
sample: true
163163
restart_required:
164-
description: "Wheter the VPC router needs a restart or not."
164+
description: "Whether the VPC router needs a restart or not."
165165
returned: success
166166
type: boolean
167167
sample: true

lib/ansible/modules/cloud/cloudstack/cs_zone.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
required: true
3939
id:
4040
description:
41-
- uuid of the exising zone.
41+
- uuid of the existing zone.
4242
default: null
4343
required: false
4444
state:

lib/ansible/modules/cloud/google/gcdns_record.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
- The DNS domain name of the zone (e.g., example.com).
5757
- One of either I(zone) or I(zone_id) must be specified as an
5858
option, or the module will fail.
59-
- If both I(zone) and I(zone_id) are specifed, I(zone_id) will be
59+
- If both I(zone) and I(zone_id) are specified, I(zone_id) will be
6060
used.
6161
required: false
6262
zone_id:
@@ -68,7 +68,7 @@
6868
with dashes. A zone ID will never have any dots in it.
6969
- I(zone_id) can be faster than I(zone) in projects with a large
7070
number of zones.
71-
- If both I(zone) and I(zone_id) are specifed, I(zone_id) will be
71+
- If both I(zone) and I(zone_id) are specified, I(zone_id) will be
7272
used.
7373
required: false
7474
type:

lib/ansible/modules/cloud/google/gce.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193
EXAMPLES = '''
194194
# Basic provisioning example. Create a single Debian 8 instance in the
195195
# us-central1-a Zone of the n1-standard-1 machine type.
196-
# Create multiple instances by specifying multiple names, seperated by
196+
# Create multiple instances by specifying multiple names, separated by
197197
# commas in the instance_names field
198198
# (e.g. my-test-instance1,my-test-instance2)
199199
gce:

lib/ansible/modules/cloud/linode/linode.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
version_added: "2.3"
8282
alert_bwquota_enabled:
8383
description:
84-
- Set status of bandwidth quota alerts as percentage of network tranfer quota.
84+
- Set status of bandwidth quota alerts as percentage of network transfer quota.
8585
default: "True"
8686
choices: [ "True", "False" ]
8787
version_added: "2.3"

lib/ansible/modules/cloud/openstack/os_auth.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
options:
3535
availability_zone:
3636
description:
37-
- Ignored. Present for backwards compatability
37+
- Ignored. Present for backwards compatibility
3838
required: false
3939
extends_documentation_fragment: openstack
4040
'''

0 commit comments

Comments
 (0)