Bulk spelling improvement to modules-core (#5225)

* Correct spelling mistakes

* Correct more spelling issues

* merge conflict

* Revert typo in parms
reviewable/pr18780/r1
John R Barker 8 years ago committed by Brian Coca
parent c6d8cb6cab
commit 312f578f93

@ -772,7 +772,7 @@ def create_block_device(module, ec2, volume):
if int(volume['iops']) > MAX_IOPS_TO_SIZE_RATIO * size:
module.fail_json(msg = 'IOPS must be at most %d times greater than size' % MAX_IOPS_TO_SIZE_RATIO)
if 'encrypted' in volume:
module.fail_json(msg = 'You can not set encyrption when creating a volume from a snapshot')
module.fail_json(msg = 'You can not set encryption when creating a volume from a snapshot')
if 'ephemeral' in volume:
if 'snapshot' in volume:
module.fail_json(msg = 'Cannot set both ephemeral and snapshot')
@ -1026,7 +1026,7 @@ def create_instances(module, ec2, vpc, override_count=None):
if ebs_optimized:
params['ebs_optimized'] = ebs_optimized
# 'tenancy' always has a default value, but it is not a valid parameter for spot instance resquest
# 'tenancy' always has a default value, but it is not a valid parameter for spot instance request
if not spot_price:
params['tenancy'] = tenancy

@ -247,7 +247,7 @@ owner_id:
type: string
sample: "435210894375"
platform:
description: plaform of image
description: platform of image
returned: when AMI is created or already exists
type: string
sample: null

@ -228,7 +228,7 @@ owner_id:
type: string
sample: "435210894375"
platform:
description: plaform of image
description: platform of image
returned: when AMI found
type: string
sample: null

@ -77,7 +77,7 @@ options:
default: None
lc_check:
description:
- Check to make sure instances that are being replaced with replace_instances do not aready have the current launch_config.
- Check to make sure instances that are being replaced with replace_instances do not already have the current launch_config.
required: false
version_added: "1.8"
default: True
@ -113,7 +113,7 @@ options:
version_added: "2.0"
wait_timeout:
description:
- how long before wait instances to become viable when replaced. Used in concjunction with instance_ids option.
- how long before wait instances to become viable when replaced. Used in conjunction with instance_ids option.
default: 300
version_added: "1.8"
wait_for_instances:
@ -125,7 +125,7 @@ options:
termination_policies:
description:
- An ordered list of criteria used for selecting instances to be removed from the Auto Scaling group when reducing capacity.
- For 'Default', when used to create a new autoscaling group, the "Default" value is used. When used to change an existent autoscaling group, the current termination policies are mantained
- For 'Default', when used to create a new autoscaling group, the "Default"i value is used. When used to change an existent autoscaling group, the current termination policies are maintained.
required: false
default: Default
choices: ['OldestInstance', 'NewestInstance', 'OldestLaunchConfiguration', 'ClosestToNextInstanceHour', 'Default']
@ -369,7 +369,7 @@ def wait_for_elb(asg_connection, module, group_name):
as_group = asg_connection.get_all_groups(names=[group_name])[0]
if as_group.load_balancers and as_group.health_check_type == 'ELB':
log.debug("Waiting for ELB to consider intances healthy.")
log.debug("Waiting for ELB to consider instances healthy.")
try:
elb_connection = connect_to_aws(boto.ec2.elb, region, **aws_connect_params)
except boto.exception.NoAuthHandlerFound as e:
@ -627,7 +627,7 @@ def replace(connection, module):
if desired_capacity is None:
desired_capacity = as_group.desired_capacity
# set temporary settings and wait for them to be reached
# This should get overriden if the number of instances left is less than the batch size.
# This should get overwritten if the number of instances left is less than the batch size.
as_group = connection.get_all_groups(names=[group_name])[0]
update_size(as_group, max_size + batch_size, min_size + batch_size, desired_capacity + batch_size)

@ -204,7 +204,7 @@ class ElbManager:
self.changed = True
break
elif self._is_instance_state_pending(instance_state):
# If it's pending, we'll skip further checks andd continue waiting
# If it's pending, we'll skip further checks and continue waiting
pass
elif (awaited_state == 'InService'
and instance_state.reason_code == "Instance"
@ -212,7 +212,7 @@ class ElbManager:
# If the reason_code for the instance being out of service is
# "Instance" this indicates a failure state, e.g. the instance
# has failed a health check or the ELB does not have the
# instance's availabilty zone enabled. The exact reason why is
# instance's availability zone enabled. The exact reason why is
# described in InstantState.description.
msg = ("The instance %s could not be put in service on %s."
" Reason: %s")

@ -135,7 +135,7 @@ options:
version_added: "1.8"
stickiness:
description:
- An associative array of stickness policy settings. Policy will be applied to all listeners ( see example )
- An associative array of stickiness policy settings. Policy will be applied to all listeners ( see example )
required: false
version_added: "2.0"
wait:
@ -316,7 +316,7 @@ EXAMPLES = """
- load_balancer_port: 80
- instance_port: 80
# Create an ELB with load balanacer stickiness enabled
# Create an ELB with load balancer stickiness enabled
- local_action:
module: ec2_elb_lb
name: "New ELB"

@ -270,7 +270,7 @@ def rtb_changed(route_tables=None, vpc_conn=None, module=None, vpc=None, igw=Non
Checks if the remote routes match the local routes.
route_tables : Route_tables parameter in the module
vpc_conn : The VPC conection object
vpc_conn : The VPC connection object
module : The module object
vpc : The vpc object for this route table
igw : The internet gateway object for this vpc
@ -503,7 +503,7 @@ def create_vpc(module, vpc_conn):
# Handle route tables - this may be worth splitting into a
# different module but should work fine here. The strategy to stay
# indempotent is to basically build all the route tables as
# idempotent is to basically build all the route tables as
# defined, track the route table ids, and then run through the
# remote list of route tables and delete any that we didn't
# create. This shouldn't interrupt traffic in theory, but is the

@ -25,7 +25,7 @@ author: Jonathan Davila (@defionscode)
options:
name:
description:
- The name to give your VPC. This is used in combination with the cidr_block paramater to determine if a VPC already exists.
- The name to give your VPC. This is used in combination with the cidr_block parameter to determine if a VPC already exists.
required: yes
cidr_block:
description:

@ -78,7 +78,7 @@ options:
default: '1'
access_key_ids:
description:
- A list of the keys that you want impacted by the access_key_state paramter.
- A list of the keys that you want impacted by the access_key_state parameter.
groups:
description:
- A list of groups the user should belong to. When update, will gracefully remove groups not listed.
@ -334,7 +334,7 @@ def update_user(module, iam, name, new_name, new_path, key_state, key_count, key
except boto.exception.BotoServerError as err:
error_msg = boto_exception(str(err))
if 'Password does not conform to the account password policy' in error_msg:
module.fail_json(changed=False, msg="Passsword doesn't conform to policy")
module.fail_json(changed=False, msg="Password doesn't conform to policy")
else:
module.fail_json(msg=error_msg)
@ -391,7 +391,7 @@ def update_user(module, iam, name, new_name, new_path, key_state, key_count, key
def set_users_groups(module, iam, name, groups, updated=None,
new_name=None):
""" Sets groups for a user, will purge groups not explictly passed, while
""" Sets groups for a user, will purge groups not explicitly passed, while
retaining pre-existing groups that also are in the new list.
"""
changed = False
@ -624,7 +624,7 @@ def main():
if iam_type == 'role' and state == 'update':
module.fail_json(changed=False, msg="iam_type: role, cannot currently be updated, "
"please specificy present or absent")
"please specify present or absent")
# check if trust_policy is present -- it can be inline JSON or a file path to a JSON file
if trust_policy_filepath:

@ -115,7 +115,7 @@ options:
description:
- Port number that the DB instance uses for connections. Used only when command=create or command=replicate.
- Prior to 2.0 it always defaults to null and the API would use 3306, it had to be set to other DB default values when not using MySql.
Starting at 2.0 it auotmaticaly defaults to what is expected for each c(db_engine).
Starting at 2.0 it automatically defaults to what is expected for each c(db_engine).
required: false
default: 3306 for mysql, 1521 for Oracle, 1433 for SQL Server, 5432 for PostgreSQL.
upgrade:

@ -485,9 +485,9 @@ def terminate_virtual_machine(module, azure):
except AzureException as e:
module.fail_json(msg="failed to delete the deployment %s, error was: %s" % (deployment.name, str(e)))
# It's unclear when disks associated with terminated deployment get detatched.
# It's unclear when disks associated with terminated deployment get detached.
# Thus, until the wait_timeout is reached, we continue to delete disks as they
# become detatched by polling the list of remaining disks and examining the state.
# become detached by polling the list of remaining disks and examining the state.
try:
_delete_disks_when_detached(azure, wait_timeout, disk_names)
except (AzureException, TimeoutError) as e:

@ -185,7 +185,7 @@ blob:
"type": "BlockBlob"
}
container:
description: Facts about the current state of the selcted container.
description: Facts about the current state of the selected container.
returned: always
type: dict
sample: {

@ -158,7 +158,7 @@ options:
required: false
public_ip_allocation_method:
description:
- If a public IP address is created when creating the VM (beacuse a Network Interface was not provided),
- If a public IP address is created when creating the VM (because a Network Interface was not provided),
determines if the public IP address remains permanently associated with the Network Interface. If set
to 'Dynamic' the public IP address may change any time the VM is rebooted or power cycled.
choices:
@ -300,7 +300,7 @@ deleted_network_interfaces:
type: list
example: ["testvm1001"]
deleted_public_ips:
description: List of deleted publid IP addrees names.
description: List of deleted public IP address names.
returned: 'on delete'
type: list
example: ["testvm1001"]
@ -913,7 +913,7 @@ class AzureRMVirtualMachine(AzureRMModuleBase):
interface_dict['name'] = int_dict['networkInterfaces']
interface_dict['properties'] = nic_dict['properties']
# Expand public IPs to include config porperties
# Expand public IPs to include config properties
for interface in result['properties']['networkProfile']['networkInterfaces']:
for config in interface['properties']['ipConfigurations']:
if config['properties'].get('publicIPAddress'):

@ -289,7 +289,7 @@ options:
required: false
pid_mode:
description:
- Set the PID namespace mode for the container. Currenly only supports 'host'.
- Set the PID namespace mode for the container. Currently only supports 'host'.
default: null
required: false
privileged:
@ -361,7 +361,7 @@ options:
description:
- Size of `/dev/shm`. The format is `<number><unit>`. `number` must be greater than `0`.
Unit is optional and can be `b` (bytes), `k` (kilobytes), `m` (megabytes), or `g` (gigabytes).
- Ommitting the unit defaults to bytes. If you omit the size entirely, the system uses `64m`.
- Omitting the unit defaults to bytes. If you omit the size entirely, the system uses `64m`.
default: null
required: false
security_opts:
@ -411,7 +411,7 @@ options:
description:
- If true, skip image verification.
default: false
requried: false
required: false
tty:
description:
- Allocate a psuedo-TTY.
@ -514,7 +514,7 @@ EXAMPLES = '''
image: ubuntu:14.04
command: sleep infinity
- name: Stop a contianer
- name: Stop a container
docker_container:
name: mycontainer
state: stopped
@ -1799,7 +1799,7 @@ class ContainerManager(DockerBaseClass):
self.results['actions'].append(dict(added_to_network=diff['parameter']['name'], network_parameters=params))
if not self.check_mode:
try:
self.log("Connecting conainer to network %s" % diff['parameter']['id'])
self.log("Connecting container to network %s" % diff['parameter']['id'])
self.log(params, pretty_print=True)
self.client.connect_container_to_network(container.Id, diff['parameter']['id'], **params)
except Exception as exc:

@ -69,7 +69,7 @@ options:
ipam_driver:
description:
- Specifiy an IPAM driver.
- Specify an IPAM driver.
default: null
ipam_options:

@ -423,7 +423,7 @@ actions:
returned: always
type: string
id:
desription: image hash
description: image hash
returned: always
type: string

@ -229,7 +229,7 @@ def ensure_user_exists(keystone, user_name, password, email, tenant_name,
check_mode):
""" Check if user exists
Return (True, id) if a new user was created, (False, id) user alrady
Return (True, id) if a new user was created, (False, id) user already
exists
"""

@ -72,7 +72,7 @@ options:
default: present
name:
description:
- Name to be assigned to the nework
- Name to be assigned to the network
required: true
default: None
provider_network_type:

@ -32,9 +32,9 @@ module: quantum_router_interface
version_added: "1.2"
author: "Benno Joy (@bennojoy)"
deprecated: Deprecated in 2.0. Use os_router instead
short_description: Attach/Dettach a subnet's interface to a router
short_description: Attach/Detach a subnet's interface to a router
description:
- Attach/Dettach a subnet interface to a router, to provide a gateway for the subnet.
- Attach/Detach a subnet interface to a router, to provide a gateway for the subnet.
options:
login_username:
description:

@ -187,7 +187,7 @@ def main():
# Requirements are met
module.exit_json(changed=False, floating_ip=f_ip)
# Requirments are vague enough to ignore exisitng f_ip and try
# Requirements are vague enough to ignore existing f_ip and try
# to create a new f_ip to the server.
server = cloud.add_ips_to_server(

@ -188,7 +188,7 @@ def _choose_id_value(module):
def _choose_if_password_only(module, patch):
if len(patch) is 1:
if 'password' in patch[0]['path'] and module.params['skip_update_of_masked_password']:
# Return false to aabort update as the password appears
# Return false to abort update as the password appears
# to be the only element in the patch.
return False
return True

@ -42,7 +42,7 @@ options:
network_name:
description:
- Name of the network to which the subnet should be attached
- requried when I(state) is 'present'
- Required when I(state) is 'present'
required: false
name:
description:

@ -262,7 +262,7 @@ EXAMPLES = '''
vm_extra_config:
folder: MyFolder
# Task to gather facts from a vSphere cluster only if the system is a VMWare guest
# Task to gather facts from a vSphere cluster only if the system is a VMware guest
- vsphere_guest:
vcenter_hostname: vcenter.mydomain.local

@ -88,7 +88,7 @@ EXAMPLES = '''
# Dumps all databases to hostname.sql
- mysql_db: state=dump name=all target=/tmp/{{ inventory_hostname }}.sql
# Imports file.sql similiar to mysql -u <username> -p <password> < hostname.sql
# Imports file.sql similar to mysql -u <username> -p <password> < hostname.sql
- mysql_db: state=import name=all target=/tmp/{{ inventory_hostname }}.sql
'''

@ -103,7 +103,7 @@ notes:
without providing any login_user/login_password details. The second must drop a ~/.my.cnf file containing
the new root credentials. Subsequent runs of the playbook will then succeed by reading the new credentials from
the file."
- Currently, there is only support for the `mysql_native_password` encryted password hash module.
- Currently, there is only support for the `mysql_native_password` encrypted password hash module.
author: "Jonathan Mainguy (@Jmainguy)"
extends_documentation_fragment: mysql

@ -78,7 +78,7 @@ options:
required: false
default: null
description:
- DEPRECATED. The acl to set or remove. This must always be quoted in the form of '<etype>:<qualifier>:<perms>'. The qualifier may be empty for some types, but the type and perms are always requried. '-' can be used as placeholder when you do not care about permissions. This is now superseded by entity, type and permissions fields.
- DEPRECATED. The acl to set or remove. This must always be quoted in the form of '<etype>:<qualifier>:<perms>'. The qualifier may be empty for some types, but the type and perms are always required. '-' can be used as placeholder when you do not care about permissions. This is now superseded by entity, type and permissions fields.
recursive:
version_added: "2.0"
@ -202,7 +202,7 @@ def acl_changed(module, cmd):
if get_platform().lower() == 'freebsd':
return True
cmd = cmd[:] # lists are mutables so cmd would be overriden without this
cmd = cmd[:] # lists are mutables so cmd would be overwritten without this
cmd.insert(1, '--test')
lines = run_acl(module, cmd)

@ -48,7 +48,7 @@ options:
required: false
default: '*'
description:
- One or more (shell or regex) patterns, which type is controled by C(use_regex) option.
- One or more (shell or regex) patterns, which type is controlled by C(use_regex) option.
- The patterns restrict the list of files to be returned to those whose basenames match at
least one of the patterns specified. Multiple patterns can be specified using a list.
aliases: ['pattern']

@ -175,7 +175,7 @@ def do_ini(module, filename, section=None, option=None, value=None, state='prese
changed = ini_lines[index] != newline
ini_lines[index] = newline
if changed:
# remove all possible option occurences from the rest of the section
# remove all possible option occurrences from the rest of the section
index = index + 1
while index < len(ini_lines):
line = ini_lines[index]

@ -172,7 +172,7 @@ stat:
type: int
sample: 1003
size:
description: Size in bytes for a plain file, ammount of data for some special files
description: Size in bytes for a plain file, amount of data for some special files
returned: success, path exists and user can read stats
type: int
sample: 203

@ -248,7 +248,7 @@ synchronize: src=some/relative/path dest=/some/absolute/path rsync_path="su -c r
# Synchronize passing in extra rsync options
synchronize:
src: /tmp/helloworld
dest: /var/www/helloword
dest: /var/www/helloworld
rsync_opts:
- "--no-motd"
- "--exclude=.git"
@ -413,7 +413,7 @@ def main():
if not source.startswith('"rsync://') and not dest.startswith('"rsync://'):
# If the user specified a port value
# Note: The action plugin takes care of setting this to a port from
# inventory if the user didn't specify an explict dest_port
# inventory if the user didn't specify an explicit dest_port
if dest_port is not None:
cmd += " --rsh 'ssh %s %s -o Port=%s'" % (private_key, ssh_opts, dest_port)
else:

@ -101,7 +101,7 @@ options:
If you worry about portability, only the sha1 algorithm is available
on all platforms and python versions. The third party hashlib
library can be installed for access to additional algorithms.
Additionaly, if a checksum is passed to this parameter, and the file exist under
Additionally, if a checksum is passed to this parameter, and the file exist under
the C(dest) location, the destination_checksum would be calculated, and if
checksum equals destination_checksum, the file download would be skipped
(unless C(force) is true). '
@ -238,7 +238,7 @@ def url_get(module, url, dest, use_proxy, last_mod_time, force, timeout=10, head
if os.path.exists(tmp_dest):
module.fail_json(msg="%s is a file but should be a directory." % tmp_dest)
else:
module.fail_json(msg="%s directoy does not exist." % tmp_dest)
module.fail_json(msg="%s directory does not exist." % tmp_dest)
fd, tempname = tempfile.mkstemp(dir=tmp_dest)
else:

@ -66,7 +66,7 @@ options:
body:
description:
- The body of the http request/response to the web service. If C(body_format) is set
to 'json' it will take an already formated JSON string or convert a data structure
to 'json' it will take an already formatted JSON string or convert a data structure
into JSON.
required: false
default: null
@ -384,7 +384,7 @@ def main():
dict_headers = module.params['headers']
if body_format == 'json':
# Encode the body unless its a string, then assume it is preformatted JSON
# Encode the body unless its a string, then assume it is pre-formatted JSON
if not isinstance(body, basestring):
body = json.dumps(body)
dict_headers['Content-Type'] = 'application/json'

@ -154,7 +154,7 @@ cl_bond: name=bond1 slaves="swp1s0 swp2s0" clag_id=1
notify: reload networking
# define cl_bond once in tasks file
# then write inteface config in variables file
# then write interface config in variables file
# with just the options you want.
cl_bond:
name: "{{ item.key }}"

@ -109,7 +109,7 @@ cl_bridge: name=bridge ports='swp1-12' vlan_aware='yes' vids='1-100'
notify: reload networking
# define cl_bridge once in tasks file
# then write inteface config in variables file
# then write interface config in variables file
# with just the options you want.
cl_bridge:
name: "{{ item.key }}"

@ -131,7 +131,7 @@ cl_interface: name=bond0.100 alias_name='my bond' ipv4=10.1.1.1/24
notify: reload networking
# define cl_interfaces once in tasks
# then write intefaces in variables file
# then write interfaces in variables file
# with just the options you want.
cl_interface:
name: "{{ item.key }}"

@ -73,7 +73,7 @@ def read_current_int_dir(module):
module.custom_currentportlist = os.listdir(module.params.get('location'))
# take the allowed list and conver it to into a list
# take the allowed list and convert it to into a list
# of ports.
def convert_allowed_list_to_port_range(module):
allowedlist = module.params.get('allowed')

@ -123,7 +123,7 @@ options:
choices: ['yes', 'no']
config:
description:
- The C(config) argument allows the playbook desginer to supply
- The C(config) argument allows the playbook designer to supply
the base configuration to be used to validate configuration
changes necessary. If this argument is provided, the module
will not download the running-config from the remote node.

@ -36,10 +36,10 @@ options:
gather_subset:
description:
- When supplied, this argument will restrict the facts collected
to a given subset. Possible values for this argument inlcude
to a given subset. Possible values for this argument include
all, hardware, config, and interfaces. Can specify a list of
values to include a larger subset. Values can also be used
with an initial M(!) to specify that a specific subset should
with an initial C(M(!)) to specify that a specific subset should
not be collected.
required: false
default: '!config'

@ -38,7 +38,7 @@ options:
description:
- List of commands to send to the remote dellos6 device over the
configured provider. The resulting output from the command
is returned. If the I(waitfor) argument is provided, the
is returned. If the I(wait_for) argument is provided, the
module is not returned until the condition is satisfied or
the number of I(retries) as expired.
required: true
@ -56,7 +56,7 @@ options:
- Specifies the number of retries a command should be tried
before it is considered failed. The command is run on the
target device every retry and evaluated against the
I(waitfor) conditions.
I(wait_for) conditions.
required: false
default: 10
interval:
@ -80,7 +80,7 @@ vars:
transport: cli
tasks:
- name: run show verion on remote devices
- name: run show version on remote devices
dellos6_command:
commands: show version
provider "{{ cli }}"

@ -36,10 +36,10 @@ options:
gather_subset:
description:
- When supplied, this argument will restrict the facts collected
to a given subset. Possible values for this argument inlcude
to a given subset. Possible values for this argument include
all, hardware, config, and interfaces. Can specify a list of
values to include a larger subset. Values can also be used
with an initial M(!) to specify that a specific subset should
with an initial C(M(!)) to specify that a specific subset should
not be collected.
required: false
default: '!config'

@ -39,7 +39,7 @@ options:
to a given subset. Possible values for this argument include
all, hardware, config, and interfaces. Can specify a list of
values to include a larger subset. Values can also be used
with an initial M(!) to specify that a specific subset should
with an initial C(M(!)) to specify that a specific subset should
not be collected.
required: false
default: '!config'

@ -19,7 +19,7 @@ DOCUMENTATION = """
---
module: eos_template
version_added: "2.1"
author: "Peter sprygada (@privateip)"
author: "Peter Sprygada (@privateip)"
short_description: Manage Arista EOS device configurations
description:
- Manages network device configurations over SSH or eAPI. This module
@ -112,7 +112,7 @@ updates:
responses:
description: The set of responses from issuing the commands on the device
retured: when not check_mode
returned: when not check_mode
type: list
sample: ['...', '...']
"""

@ -88,7 +88,7 @@ vars:
password: admin
transport: cli
- name: run show verion on remote devices
- name: run show version on remote devices
eos_command:
commands: show version
provider: "{{ cli }}"
@ -106,7 +106,7 @@ vars:
- show interfaces
provider: "{{ cli }}"
- name: run multiple commands and evalute the output
- name: run multiple commands and evaluate the output
eos_command:
commands:
- show version
@ -139,7 +139,7 @@ stdout_lines:
failed_conditions:
description: the conditionals that failed
retured: failed
returned: failed
type: list
sample: ['...', '...']
"""

@ -103,7 +103,7 @@ ansible_net_fqdn:
# hardware
ansible_net_filesystems:
description: All file system names availabe on the device
description: All file system names available on the device
returned: when hardware is configured
type: list
ansible_net_memfree_mb:

@ -94,7 +94,7 @@ EXAMPLES = """
src: config.j2
force: yes
- name: provide the base configuration for comparision
- name: provide the base configuration for comparison
ios_template:
host: hostname
username: foo

@ -35,7 +35,7 @@ options:
to a given subset. Possible values for this argument include
all, hardware, config, and interfaces. Can specify a list of
values to include a larger subset. Values can also be used
with an initial M(!) to specify that a specific subset should
with an initial C(M(!)) to specify that a specific subset should
not be collected.
required: false
default: '!config'
@ -87,7 +87,7 @@ ansible_net_image:
# hardware
ansible_net_filesystems:
description: All file system names availabe on the device
description: All file system names available on the device
returned: when hardware is configured
type: list
ansible_net_memfree_mb:

@ -19,7 +19,7 @@ DOCUMENTATION = """
---
module: iosxr_template
version_added: "2.1"
author: "Peter sprygada (@privateip)"
author: "Peter Sprygada (@privateip)"
short_description: Manage Cisco IOSXR device configurations over SSH
description:
- Manages network device configurations over SSH. This module
@ -97,7 +97,7 @@ updates:
responses:
description: The set of responses from issuing the commands on the device
retured: when not check_mode
returned: when not check_mode
type: list
sample: ['...', '...']
"""

@ -79,7 +79,7 @@ ansible_net_image:
# hardware
ansible_net_filesystems:
description: All file system names availabe on the device
description: All file system names available on the device
returned: when hardware is configured
type: list
ansible_net_memfree_mb:

@ -148,7 +148,7 @@ stdout_lines:
failed_conditionals:
description: the conditionals that failed
retured: failed
returned: failed
type: list
sample: ['...', '...']
"""

@ -45,7 +45,7 @@ options:
format of the configuration file. Devices support three
configuration file formats. By default, the configuration
from the device is returned as text. The other options include
set and xml. If the xml option is choosen, the configuration file
set and xml. If the xml option is chosen, the configuration file
is returned as both xml and json.
required: false
default: text
@ -81,7 +81,7 @@ EXAMPLES = """
RETURN = """
ansible_facts:
descrption: Returns the facts collect from the device
description: Returns the facts collect from the device
returned: always
type: dict
"""

@ -97,7 +97,7 @@ options:
1 and 255 or 0 to unset.
pn_bgp_options:
description:
- Specify other BGP options as a whitespaces separted string within
- Specify other BGP options as a whitespaces separated string within
single quotes ''.
pn_rip_redistribute:
description:

@ -32,7 +32,7 @@ description:
- Execute vrouter-interface-add, vrouter-interface-remove,
vrouter-interface-modify command.
- You configure interfaces to vRouter services on a fabric, cluster,
standalone switch or virtula network(VNET).
standalone switch or virtual network(VNET).
options:
pn_cliusername:
description:

@ -90,7 +90,7 @@ EXAMPLES = """
src: config.j2
force: yes
- name: provide the base configuration for comparision
- name: provide the base configuration for comparison
nxos_template:
src: candidate_config.txt
config: current_config.txt
@ -105,7 +105,7 @@ updates:
responses:
description: The set of responses from issuing the commands on the device
retured: when not check_mode
returned: when not check_mode
type: list
sample: ['...', '...']
"""

@ -38,7 +38,7 @@ notes:
If there is any difference, what is in Ansible will be pushed (configured
options will be overridden). This is to improve security, but at the
same time remember an ACE is removed, then re-added, so if there is a
change, the new ACE will be exactly what paramaters you are sending to
change, the new ACE will be exactly what parameters you are sending to
the module.
options:
seq:

@ -949,7 +949,7 @@ def main():
if module.params['vrf'] != 'default':
for param, inserted_value in module.params.iteritems():
if param in GLOBAL_PARAMS and inserted_value:
module.fail_json(msg='Global params can be modifed only'
module.fail_json(msg='Global params can be modified only'
' under "default" VRF.',
vrf=module.params['vrf'],
global_param=param)

@ -50,7 +50,7 @@ options:
required: true
afi:
description:
- Address Family Identifie.
- Address Family Identifier.
required: true
choices: ['ipv4','ipv6', 'vpnv4', 'vpnv6', 'l2vpn']
safi:

@ -93,7 +93,7 @@ vars:
password: admin
transport: cli
- name: run show verion on remote devices
- name: run show version on remote devices
nxos_command:
commands: show version
provider: "{{ cli }}"
@ -111,7 +111,7 @@ vars:
- show interfaces
provider: "{{ cli }}"
- name: run multiple commands and evalute the output
- name: run multiple commands and evaluate the output
nxos_command:
commands:
- show version
@ -144,7 +144,7 @@ stdout_lines:
failed_conditions:
description: the conditionals that failed
retured: failed
returned: failed
type: list
sample: ['...', '...']
"""

@ -28,7 +28,7 @@ author: Gabriele Gerbino (@GGabriele)
extends_documentation_fragment: nxos
notes:
- default, where supported, restores params default value.
- RD override is not permitted. You should set it to the defalt values
- RD override is not permitted. You should set it to the default values
first and then reconfigure it.
- C(route_target_both), C(route_target_import) and
C(route_target_export valid) values are a list of extended communities,

@ -100,7 +100,7 @@ ansible_net_image:
# hardware
ansible_net_filesystems:
description: All file system names availabe on the device
description: All file system names available on the device
returned: when hardware is configured
type: list
ansible_net_memfree_mb:

@ -63,7 +63,7 @@ EXAMPLES = '''
RETURN = '''
transfer_status:
description: Whether a file was transfered. "No Transfer" or "Sent".
description: Whether a file was transferred. "No Transfer" or "Sent".
returned: success
type: string
sample: 'Sent'

@ -39,7 +39,7 @@ options:
default: null
mode:
description:
- Configure the profile as Maintenance or Normale mode.
- Configure the profile as Maintenance or Normal mode.
required: true
choices: ['maintenance', 'normal']
state:
@ -376,4 +376,4 @@ def main():
if __name__ == '__main__':
main()
main()

@ -36,7 +36,7 @@ notes:
- You must know if your platform supports taking a kickstart image as a
parameter. If supplied but not supported, errors may occur.
- This module attempts to install the software immediately,
wich may trigger a reboot.
which may trigger a reboot.
- In check mode, the module tells you if the current boot images are set
to the desired images.
author:
@ -364,7 +364,7 @@ def set_boot_options(module, image_name, kickstart=None):
Args:
The main system image file name.
Keyword Args: many implementors may choose
to supply a kickstart parameter to specicify a kickstart image.
to supply a kickstart parameter to specify a kickstart image.
"""
commands = ['terminal dont-ask']
if kickstart is None:
@ -413,4 +413,4 @@ def main():
if __name__ == '__main__':
main()
main()

@ -28,7 +28,7 @@ extends_documentation_fragment: nxos
author:
- Jason Edelman (@jedelman8)
notes:
- If C(state=absent), the moudle will attempt to remove the given key configuration.
- If C(state=absent), the module will attempt to remove the given key configuration.
If a matching key configuration isn't found on the device, the module will fail.
- If C(state=absent) and C(authentication=on), authentication will be turned off.
- If C(state=absent) and C(authentication=off), authentication will be turned on.
@ -59,7 +59,7 @@ options:
choices: ['true', 'false']
authentication:
description:
- Turns NTP authenication on or off.
- Turns NTP authentication on or off.
required: false
default: null
choices: ['on', 'off']
@ -96,7 +96,7 @@ existing:
type: dict
sample: {"authentication": "off", "trusted_key": "false"}
end_state:
description: k/v pairs of ntp autherntication after module execution
description: k/v pairs of ntp authentication after module execution
returned: always
type: dict
sample: {"authentication": "off", "key_id": "32",

@ -277,7 +277,7 @@ def main():
sandbox=dict(aliases=['enable_sandbox'], default=False, type='bool'),
# Only allow configuration of NXAPI using cli transpsort
# Only allow configuration of NXAPI using cli transport
transport=dict(required=True, choices=['cli']),
config=dict(),

@ -355,7 +355,7 @@ def main():
remote_exists = remote_file_exists(module, pkg, file_system=file_system)
if not remote_exists:
module.fail_json(msg="The requested package does't exist "
module.fail_json(msg="The requested package doesn't exist "
"on the device")
commands = get_commands(module, pkg, file_system)

@ -29,7 +29,7 @@ extends_documentation_fragment: nxos
author:
- Gabriele Gerbino (@GGabriele)
notes:
- C(transpot=cli) may cause timeout errors.
- C(transport=cli) may cause timeout errors.
- The C(element_key1) and C(element_key2) parameter specify the tags used
to distinguish among row entries. In most cases, only the element_key1
parameter needs to specified to be able to distinguish among row entries.

@ -473,7 +473,7 @@ def main():
if privacy and encrypt:
if not pwd and authentication:
module.fail_json(msg='pwd and authentication must be proviced '
module.fail_json(msg='pwd and authentication must be provided '
'when using privacy and encrypt')
if group and group not in get_snmp_groups(module):

@ -487,7 +487,7 @@ def get_switchport_config_commands(interface, existing, proposed, module):
def is_switchport_default(existing):
"""Determines if switchport has a default config based on mode
Args:
existing (dict): existing switcport configuration from Ansible mod
existing (dict): existing switchport configuration from Ansible mod
Returns:
boolean: True if switchport has OOB Layer 2 config, i.e.
vlan 1 and trunk all and mode is access
@ -802,4 +802,4 @@ def main():
module.exit_json(**results)
if __name__ == '__main__':
main()
main()

@ -28,7 +28,7 @@ extends_documentation_fragment: nxos
author:
- Jason Edelman (@jedelman8)
notes:
- When C(state=absent), it unconfigures existing setings C(msg_time) and set it
- When C(state=absent), it unconfigures existing settings C(msg_time) and set it
to its default value of 15. It is cleaner to always use C(state=present).
- Module will fail if the udld feature has not been previously enabled.
options:

@ -363,6 +363,7 @@ def get_udld_interface(module, interface):
table = body['TABLE_interface']['ROW_interface']
status = str(table.get('mib-port-status', None))
# Note: 'mib-aggresive-mode' is NOT a typo
agg = str(table.get('mib-aggresive-mode', 'disabled'))
if agg == 'enabled':

@ -46,7 +46,7 @@ options:
default: null
peer_link:
description:
- Set to true/false for peer link config on assoicated portchannel.
- Set to true/false for peer link config on associated portchannel.
required: false
default: null
state:

@ -29,7 +29,7 @@ notes:
- VTP feature must be active on the device to use this module.
- This module is used to manage only VTP domain names.
- VTP domain names are case-sensible.
- If it's never been configured before, VTP version is setted to 1 by default.
- If it's never been configured before, VTP version is set to 1 by default.
Otherwise, it leaves the previous configured version untouched.
Use M(nxos_vtp_version) to change it.
- Use this in combination with M(nxos_vtp_password) and M(nxos_vtp_version)

@ -80,7 +80,7 @@ options:
choices: ['present','absent']
include_defaults:
description:
- Specify to use or not the complete runnning configuration
- Specify to use or not the complete running configuration
for module operations.
required: false
default: true

@ -87,11 +87,11 @@ EXAMPLES = """
RETURN = """
updates:
description: The list of configuration updates to be merged
retured: always
returned: always
type: dict
sample: {obj, obj}
responses:
desription: returns the responses when configuring using cli
description: returns the responses when configuring using cli
returned: when transport == cli
type: list
sample: [...]

@ -20,7 +20,7 @@ DOCUMENTATION = """
---
module: ops_command
version_added: "2.1"
author: "Peter sprygada (@privateip)"
author: "Peter Sprygada (@privateip)"
short_description: Run arbitrary commands on OpenSwitch devices.
description:
- Sends arbitrary commands to an OpenSwitch node and returns the results
@ -33,7 +33,7 @@ options:
description:
- List of commands to send to the remote ops device over the
configured provider. The resulting output from the command
is returned. If the I(waitfor) argument is provided, the
is returned. If the I(wait_for) argument is provided, the
module is not returned until the condition is satisfied or
the number of retires as expired.
required: true
@ -65,7 +65,7 @@ options:
- Specifies the number of retries a command should by tried
before it is considered failed. The command is run on the
target device every retry and evaluated against the
I(waitfor) conditions.
I(wait_for) conditions.
required: false
default: 10
interval:
@ -122,7 +122,7 @@ stdout_lines:
failed_conditions:
description: the conditionals that failed
retured: failed
returned: failed
type: list
sample: ['...', '...']
"""

@ -117,7 +117,7 @@ stdout_lines:
sample: [['...', '...'], ['...'], ['...']]
failed_conditions:
description: The conditionals that failed
retured: failed
returned: failed
type: list
sample: ['...', '...']
warnings:

@ -35,7 +35,7 @@ options:
to a given subset. Possible values for this argument include
all, hardware, config, and interfaces. Can specify a list of
values to include a larger subset. Values can also be used
with an initial M(!) to specify that a specific subset should
with an initial C(M(!)) to specify that a specific subset should
not be collected.
required: false
default: "!config"
@ -70,7 +70,7 @@ ansible_net_config:
returned: when config is configured
type: str
ansible_net_commits:
descrption: The set of available configuration revisions
description: The set of available configuration revisions
returned: when present
type: list
ansible_net_hostname:

@ -266,8 +266,8 @@ def package_version_compare(version, other_version):
def package_status(m, pkgname, version, cache, state):
try:
# get the package from the cache, as well as the
# the low-level apt_pkg.Package object which contains
# state fields not directly acccesible from the
# low-level apt_pkg.Package object which contains
# state fields not directly accessible from the
# higher-level apt.package.Package object.
pkg = cache[pkgname]
ll_pkg = cache._cache[pkgname] # the low-level package object
@ -819,7 +819,7 @@ def main():
updated_cache = True
mtimestamp, updated_cache_time = get_updated_cache_time()
# If theres nothing else to do exit. This will set state as
# If there is nothing else to do exit. This will set state as
# changed based on if the cache was updated.
if not p['package'] and not p['upgrade'] and not p['deb']:
module.exit_json(
@ -879,7 +879,7 @@ def main():
# Store when the update time was last
retvals['cache_update_time'] = updated_cache_time
# If the cache was updated and the general state change was set to
# False make sure that the change in cache state is acurately
# False make sure that the change in cache state is accurately
# updated by setting the general changed state to the same as
# the cache state.
if updated_cache and not retvals['changed']:

@ -71,7 +71,7 @@ options:
default: null
org_id:
description:
- Organisation ID to use in conjunction with activationkey
- Organization ID to use in conjunction with activationkey
required: False
default: null
version_added: "2.0"

@ -39,7 +39,7 @@ options:
default: "present"
choices: [present, absent]
description:
- Wheather the key will be imported or removed from the rpm db.
- If the key will be imported or removed from the rpm db.
validate_certs:
description:
- If C(no) and the C(key) is a url starting with https, SSL certificates will not be validated. This should only be used

@ -551,7 +551,7 @@ def get_head_branch(git_path, module, dest, remote, bare=False):
if os.path.isfile(repo_path):
try:
gitdir = yaml.safe_load(open(repo_path)).get('gitdir')
# There is a posibility the .git file to have an absolute path.
# There is a possibility the .git file to have an absolute path.
if os.path.isabs(gitdir):
repo_path = gitdir
else:
@ -590,7 +590,7 @@ def set_remote_url(git_path, module, repo, dest, remote):
label = "set a new url %s for %s" % (repo, remote)
module.fail_json(msg="Failed to %s: %s %s" % (label, out, err))
# Return False if remote_url is None to maintain previous bevhavior
# Return False if remote_url is None to maintain previous behavior
# for Git versions prior to 1.7.5 that lack required functionality.
return remote_url is not None
@ -614,7 +614,7 @@ def fetch(git_path, module, repo, dest, version, remote, depth, bare, refspec, g
refspecs.append(currenthead)
elif is_remote_branch(git_path, module, dest, repo, version):
if currenthead != version:
# this workaroung is only needed for older git versions
# this workaround is only needed for older git versions
# 1.8.3 is broken, 1.9.x works
# ensure that remote branch is available as both local and remote ref
refspecs.append('+refs/heads/%s:refs/heads/%s' % (version, version))

@ -174,7 +174,7 @@ class Subversion(object):
# The --quiet option will return only modified files.
# Match only revisioned files, i.e. ignore status '?'.
regex = re.compile(r'^[^?X]')
# Has local mods if more than 0 modifed revisioned files.
# Has local mods if more than 0 modified revisioned files.
return len(filter(regex.match, lines)) > 0
def needs_update(self):

@ -22,7 +22,7 @@
# You should have received a copy of the GNU General Public License
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
#
# Cron Plugin: The goal of this plugin is to provide an indempotent method for
# Cron Plugin: The goal of this plugin is to provide an idempotent method for
# setting up cron jobs on a host. The script will play well with other manually
# entered crons. Each cron job entered will be preceded with a comment
# describing the job so that it can be found later, which is required to be
@ -139,7 +139,7 @@ options:
env:
description:
- If set, manages a crontab's environment variable. New variables are added on top of crontab.
"name" and "value" paramenters are the name and the value of environment variable.
"name" and "value" parameters are the name and the value of environment variable.
version_added: "2.1"
required: false
default: "no"

@ -258,7 +258,7 @@ class DarwinGroup(Group):
- group_add()
- group_mod()
group manupulation are done using dseditgroup(1).
group manipulation are done using dseditgroup(1).
"""
platform = 'Darwin'

@ -1350,7 +1350,7 @@ class SunOSService(Service):
def service_control(self):
status = self.get_sunos_svcs_status()
# if starting or reloading, clear maintenace states
# if starting or reloading, clear maintenance states
if self.action in ['start', 'reload', 'restart'] and status in ['maintenance', 'degraded']:
rc, stdout, stderr = self.execute_command("%s clear %s" % (self.svcadm_cmd, self.name))
if rc != 0:

@ -75,7 +75,7 @@ EXAMPLES = '''
- systemd: state=started name=httpd
# Example action to stop service cron on debian, if running
- systemd: name=cron state=stopped
# Example action to restart service cron on centos, in all cases, also issue deamon-reload to pick up config changes
# Example action to restart service cron on centos, in all cases, also issue daemon-reload to pick up config changes
- systemd: state=restarted daemon_reload=yes name=crond
# Example action to reload service httpd, in all cases
- systemd: name=httpd state=reloaded

@ -1528,7 +1528,7 @@ class DarwinUser(User):
def _change_user_password(self):
'''Change password for SELF.NAME against SELF.PASSWORD.
Please note that password must be cleatext.
Please note that password must be cleartext.
'''
# some documentation on how is stored passwords on OSX:
# http://blog.lostpassword.com/2012/07/cracking-mac-os-x-lion-accounts-passwords/
@ -1560,7 +1560,7 @@ class DarwinUser(User):
def __modify_group(self, group, action):
'''Add or remove SELF.NAME to or from GROUP depending on ACTION.
ACTION can be 'add' or 'remove' otherwhise 'remove' is assumed. '''
ACTION can be 'add' or 'remove' otherwise 'remove' is assumed. '''
if action == 'add':
option = '-a'
else:
@ -1574,7 +1574,7 @@ class DarwinUser(User):
def _modify_group(self):
'''Add or remove SELF.NAME to or from GROUP depending on ACTION.
ACTION can be 'add' or 'remove' otherwhise 'remove' is assumed. '''
ACTION can be 'add' or 'remove' otherwise 'remove' is assumed. '''
rc = 0
out = ''

@ -255,7 +255,7 @@ class LocalSocketThread(Thread):
conn.sendall("EXISTS\n")
# update the last event time so the server doesn't
# shutdown sooner than expected for new cliets
# shutdown sooner than expected for new clients
try:
self.server.last_event_lock.acquire()
self.server.last_event = datetime.datetime.now()

@ -40,7 +40,7 @@ options:
required: true
default: null
notes:
- meta is not really a module nor action_plugin as such it cannot be overriden.
- meta is not really a module nor action_plugin as such it cannot be overwritten.
author:
- "Ansible Core Team"
'''

@ -222,7 +222,7 @@ if __name__ == '__main__':
if pid:
# Notify the overlord that the async process started
# we need to not return immmediately such that the launched command has an attempt
# we need to not return immediately such that the launched command has an attempt
# to initialize PRIOR to ansible trying to clean up the launch directory (and argsfile)
# this probably could be done with some IPC later. Modules should always read
# the argsfile at the very first start of their execution anyway

@ -94,7 +94,7 @@ options:
newline:
required: false
description:
- "Specifies the line separator style to use for the modified file. This defaults to the windows line separator (\r\n). Note that the indicated line separator will be used for file output regardless of the original line seperator that appears in the input file."
- "Specifies the line separator style to use for the modified file. This defaults to the windows line separator (\r\n). Note that the indicated line separator will be used for file output regardless of the original line separator that appears in the input file."
choices: [ "windows", "unix" ]
default: "windows"
"""
@ -110,7 +110,7 @@ EXAMPLES = """
- win_lineinfile: dest=C:\\temp\\services regexp="^# port for http" insertbefore="^www.*80/tcp" line="# port for http by default"
# Create file if it doesnt exist with a specific encoding
# Create file if it doesn't exist with a specific encoding
- win_lineinfile: dest=C:\\temp\\utf16.txt create="yes" encoding="utf-16" line="This is a utf-16 encoded file"
# Add a line to a file and ensure the resulting file uses unix line separators

Loading…
Cancel
Save