Merge branch 'spelling' of git://github.com/cgar/ansible into devel
Conflicts: docsite/rst/guide_rax.rst plugins/callbacks/mail.py
This commit is contained in:
commit
3bead39c75
36 changed files with 54 additions and 54 deletions
16
CHANGELOG.md
16
CHANGELOG.md
|
@ -235,7 +235,7 @@ New modules:
|
||||||
* system: at
|
* system: at
|
||||||
* utilities: assert
|
* utilities: assert
|
||||||
|
|
||||||
Other notable changes (many new module params & bugfixes may not not listed):
|
Other notable changes (many new module params & bugfixes may not be listed):
|
||||||
|
|
||||||
* no_reboot is now defaulted to "no" in the ec2_ami module to ensure filesystem consistency in the resulting AMI.
|
* no_reboot is now defaulted to "no" in the ec2_ami module to ensure filesystem consistency in the resulting AMI.
|
||||||
* sysctl module overhauled
|
* sysctl module overhauled
|
||||||
|
@ -295,7 +295,7 @@ Highlighted new features:
|
||||||
* Added do-until feature, which can be used to retry a failed task a specified number of times with a delay in-between the retries.
|
* Added do-until feature, which can be used to retry a failed task a specified number of times with a delay in-between the retries.
|
||||||
* Added failed_when option for tasks, which can be used to specify logical statements that make it easier to determine when a task has failed, or to make it easier to ignore certain non-zero return codes for some commands.
|
* Added failed_when option for tasks, which can be used to specify logical statements that make it easier to determine when a task has failed, or to make it easier to ignore certain non-zero return codes for some commands.
|
||||||
* Added the "subelement" lookup plugin, which allows iteration of the keys of a dictionary or items in a list.
|
* Added the "subelement" lookup plugin, which allows iteration of the keys of a dictionary or items in a list.
|
||||||
* Added the capability to use either paramiko or ssh for the inital setup connection of an accelerated playbook.
|
* Added the capability to use either paramiko or ssh for the initial setup connection of an accelerated playbook.
|
||||||
* Automatically provide advice on common parser errors users encounter.
|
* Automatically provide advice on common parser errors users encounter.
|
||||||
* Deprecation warnings are now shown for legacy features: when_integer/etc, only_if, include+with_items, etc. Can be disabled in ansible.cfg
|
* Deprecation warnings are now shown for legacy features: when_integer/etc, only_if, include+with_items, etc. Can be disabled in ansible.cfg
|
||||||
* The system will now provide helpful tips around possible YAML syntax errors increasing ease of use for new users.
|
* The system will now provide helpful tips around possible YAML syntax errors increasing ease of use for new users.
|
||||||
|
@ -365,7 +365,7 @@ Misc changes (all module additions/fixes may not listed):
|
||||||
* Added a -vvvv level, which will show SSH client debugging information in the event of a failure.
|
* Added a -vvvv level, which will show SSH client debugging information in the event of a failure.
|
||||||
* Includes now support the more standard syntax, similar to that of role includes and dependencies.
|
* Includes now support the more standard syntax, similar to that of role includes and dependencies.
|
||||||
* Changed the `user:` parameter on plays to `remote_user:` to prevent confusion with the module of the same name. Still backwards compatible on play parameters.
|
* Changed the `user:` parameter on plays to `remote_user:` to prevent confusion with the module of the same name. Still backwards compatible on play parameters.
|
||||||
* Added parameter to allow the fetch module to skip the md5 validation step ('validate_md5=false'). This is usefull when fetching files that are actively being written to, such as live log files.
|
* Added parameter to allow the fetch module to skip the md5 validation step ('validate_md5=false'). This is useful when fetching files that are actively being written to, such as live log files.
|
||||||
* Inventory hosts are used in the order they appear in the inventory.
|
* Inventory hosts are used in the order they appear in the inventory.
|
||||||
* in hosts: foo[2-5] type syntax, the iterators now are zero indexed and the last index is non-inclusive, to match Python standards.
|
* in hosts: foo[2-5] type syntax, the iterators now are zero indexed and the last index is non-inclusive, to match Python standards.
|
||||||
* There is now a way for a callback plugin to disable itself. See osx_say example code for an example.
|
* There is now a way for a callback plugin to disable itself. See osx_say example code for an example.
|
||||||
|
@ -624,7 +624,7 @@ Modules added:
|
||||||
* packages: redhat_subscription: manage Red Hat subscription usage
|
* packages: redhat_subscription: manage Red Hat subscription usage
|
||||||
* packages: rhn_register: basic RHN registration
|
* packages: rhn_register: basic RHN registration
|
||||||
* packages: zypper (SuSE)
|
* packages: zypper (SuSE)
|
||||||
* database: postgresql_priv: manages postgresql priveledges
|
* database: postgresql_priv: manages postgresql privileges
|
||||||
* networking: bigip_pool: load balancing with F5s
|
* networking: bigip_pool: load balancing with F5s
|
||||||
* networking: ec2_elb: add and remove machines from ec2 elastic load balancers
|
* networking: ec2_elb: add and remove machines from ec2 elastic load balancers
|
||||||
* notification: hipchat: send notification events to hipchat
|
* notification: hipchat: send notification events to hipchat
|
||||||
|
@ -666,7 +666,7 @@ Bugfixes and Misc Changes:
|
||||||
* private_ip parameter added to the ec2 module
|
* private_ip parameter added to the ec2 module
|
||||||
* $FILE and $PIPE now tolerate unicode
|
* $FILE and $PIPE now tolerate unicode
|
||||||
* various plugin loading operations have been made more efficient
|
* various plugin loading operations have been made more efficient
|
||||||
* hostname now uses platform.node versus socket.gethostname to be more consistant with Unix 'hostname'
|
* hostname now uses platform.node versus socket.gethostname to be more consistent with Unix 'hostname'
|
||||||
* fix for SELinux operations on Unicode path names
|
* fix for SELinux operations on Unicode path names
|
||||||
* inventory directory locations now ignore files with .ini extensions, making hybrid inventory easier
|
* inventory directory locations now ignore files with .ini extensions, making hybrid inventory easier
|
||||||
* copy module in check-mode now reports back correct changed status when used with force=no
|
* copy module in check-mode now reports back correct changed status when used with force=no
|
||||||
|
@ -706,8 +706,8 @@ the variable is still registered for the host, with the attribute skipped: True.
|
||||||
* localhost and 127.0.0.1 are now fuzzy matched in inventory (are now more or less interchangeable)
|
* localhost and 127.0.0.1 are now fuzzy matched in inventory (are now more or less interchangeable)
|
||||||
* AIX improvements/fixes for users, groups, facts
|
* AIX improvements/fixes for users, groups, facts
|
||||||
* lineinfile now does atomic file replacements
|
* lineinfile now does atomic file replacements
|
||||||
* fix to not pass PasswordAuthentication=no in the config file unneccessarily for SSH connection type
|
* fix to not pass PasswordAuthentication=no in the config file unnecessarily for SSH connection type
|
||||||
* for for authorized_key on Debian Squeeze
|
* for authorized_key on Debian Squeeze
|
||||||
* fixes for apt_repository module reporting changed incorrectly on certain repository types
|
* fixes for apt_repository module reporting changed incorrectly on certain repository types
|
||||||
* allow the virtualenv argument to the pip module to be a pathname
|
* allow the virtualenv argument to the pip module to be a pathname
|
||||||
* service pattern argument now correctly read for BSD services
|
* service pattern argument now correctly read for BSD services
|
||||||
|
@ -1133,7 +1133,7 @@ Module changes:
|
||||||
* setup module now detects interfaces with aliases
|
* setup module now detects interfaces with aliases
|
||||||
* better handling of VM guest type detection in setup module
|
* better handling of VM guest type detection in setup module
|
||||||
* new module boilerplate code to check for mutually required arguments, arguments required together, exclusive args
|
* new module boilerplate code to check for mutually required arguments, arguments required together, exclusive args
|
||||||
* add pattern= as a paramter to the service module (for init scripts that don't do status, or do poor status)
|
* add pattern= as a parameter to the service module (for init scripts that don't do status, or do poor status)
|
||||||
* various fixes to mysql & postresql modules
|
* various fixes to mysql & postresql modules
|
||||||
* added a thirsty= option (boolean, default no) to the get_url module to decide to download the file every time or not
|
* added a thirsty= option (boolean, default no) to the get_url module to decide to download the file every time or not
|
||||||
* added a wait_for module to poll for ports being open
|
* added a wait_for module to poll for ports being open
|
||||||
|
|
|
@ -138,7 +138,7 @@ affecting a smaller number of users.
|
||||||
Since we place a strong emphasis on testing and code review, it may take a few months for a minor feature to get merged.
|
Since we place a strong emphasis on testing and code review, it may take a few months for a minor feature to get merged.
|
||||||
|
|
||||||
Don't worry though -- we'll also take periodic sweeps through the lower priority queues and give
|
Don't worry though -- we'll also take periodic sweeps through the lower priority queues and give
|
||||||
them some attention as well, particularly in the area of new module changes. So it doesn't neccessarily
|
them some attention as well, particularly in the area of new module changes. So it doesn't necessarily
|
||||||
mean that we'll be exhausting all of the higher-priority queues before getting to your ticket.
|
mean that we'll be exhausting all of the higher-priority queues before getting to your ticket.
|
||||||
|
|
||||||
Release Numbering
|
Release Numbering
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
* helper function to return a node containing the
|
* helper function to return a node containing the
|
||||||
* search summary for a given text. keywords is a list
|
* search summary for a given text. keywords is a list
|
||||||
* of stemmed words, hlwords is the list of normal, unstemmed
|
* of stemmed words, hlwords is the list of normal, unstemmed
|
||||||
* words. the first one is used to find the occurance, the
|
* words. the first one is used to find the occurrence, the
|
||||||
* latter for highlighting it.
|
* latter for highlighting it.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
|
@ -201,7 +201,7 @@ class ElbManager:
|
||||||
self.module.fail_json(msg=msg % (self.instance_id, lb))
|
self.module.fail_json(msg=msg % (self.instance_id, lb))
|
||||||
|
|
||||||
if instance_state.state == awaited_state:
|
if instance_state.state == awaited_state:
|
||||||
# Check the current state agains the initial state, and only set
|
# Check the current state against the initial state, and only set
|
||||||
# changed if they are different.
|
# changed if they are different.
|
||||||
if (initial_state is None) or (instance_state.state != initial_state.state):
|
if (initial_state is None) or (instance_state.state != initial_state.state):
|
||||||
self.changed = True
|
self.changed = True
|
||||||
|
|
|
@ -137,7 +137,7 @@ EXAMPLES = '''
|
||||||
resource_tags: { "Environment":"Development" }
|
resource_tags: { "Environment":"Development" }
|
||||||
region: us-west-2
|
region: us-west-2
|
||||||
# Full creation example with subnets and optional availability zones.
|
# Full creation example with subnets and optional availability zones.
|
||||||
# The absence or presense of subnets deletes or creates them respectively.
|
# The absence or presence of subnets deletes or creates them respectively.
|
||||||
local_action:
|
local_action:
|
||||||
module: ec2_vpc
|
module: ec2_vpc
|
||||||
state: present
|
state: present
|
||||||
|
@ -412,7 +412,7 @@ def create_vpc(module, vpc_conn):
|
||||||
# indempotent is to basically build all the route tables as
|
# indempotent is to basically build all the route tables as
|
||||||
# defined, track the route table ids, and then run through the
|
# defined, track the route table ids, and then run through the
|
||||||
# remote list of route tables and delete any that we didn't
|
# remote list of route tables and delete any that we didn't
|
||||||
# create. This shouldn't interupt traffic in theory, but is the
|
# create. This shouldn't interrupt traffic in theory, but is the
|
||||||
# only way to really work with route tables over time that I can
|
# only way to really work with route tables over time that I can
|
||||||
# think of without using painful aws ids. Hopefully boto will add
|
# think of without using painful aws ids. Hopefully boto will add
|
||||||
# the replace-route-table API to make this smoother and
|
# the replace-route-table API to make this smoother and
|
||||||
|
|
|
@ -317,7 +317,7 @@ def handle_create(module, gs, bucket, obj):
|
||||||
if bucket_check(module, gs, bucket):
|
if bucket_check(module, gs, bucket):
|
||||||
module.exit_json(msg="Bucket already exists.", changed=False)
|
module.exit_json(msg="Bucket already exists.", changed=False)
|
||||||
else:
|
else:
|
||||||
module.exit_json(msg="Bucket created succesfully", changed=create_bucket(module, gs, bucket))
|
module.exit_json(msg="Bucket created successfully", changed=create_bucket(module, gs, bucket))
|
||||||
if bucket and obj:
|
if bucket and obj:
|
||||||
if bucket_check(module, gs, bucket):
|
if bucket_check(module, gs, bucket):
|
||||||
if obj.endswith('/'):
|
if obj.endswith('/'):
|
||||||
|
@ -362,10 +362,10 @@ def main():
|
||||||
|
|
||||||
if mode == 'put':
|
if mode == 'put':
|
||||||
if not src or not object:
|
if not src or not object:
|
||||||
module.fail_json(msg="When using PUT, src, bucket, object are mandatory paramters")
|
module.fail_json(msg="When using PUT, src, bucket, object are mandatory parameters")
|
||||||
if mode == 'get':
|
if mode == 'get':
|
||||||
if not dest or not object:
|
if not dest or not object:
|
||||||
module.fail_json(msg="When using GET, dest, bucket, object are mandatory paramters")
|
module.fail_json(msg="When using GET, dest, bucket, object are mandatory parameters")
|
||||||
if obj:
|
if obj:
|
||||||
obj = os.path.expanduser(module.params['object'])
|
obj = os.path.expanduser(module.params['object'])
|
||||||
|
|
||||||
|
|
|
@ -168,7 +168,7 @@ def _set_tenant_id(module):
|
||||||
_os_tenant_id = tenant.id
|
_os_tenant_id = tenant.id
|
||||||
break
|
break
|
||||||
if not _os_tenant_id:
|
if not _os_tenant_id:
|
||||||
module.fail_json(msg = "The tenant id cannot be found, please check the paramters")
|
module.fail_json(msg = "The tenant id cannot be found, please check the parameters")
|
||||||
|
|
||||||
|
|
||||||
def _get_net_id(neutron, module):
|
def _get_net_id(neutron, module):
|
||||||
|
|
|
@ -139,7 +139,7 @@ def _set_tenant_id(module):
|
||||||
_os_tenant_id = tenant.id
|
_os_tenant_id = tenant.id
|
||||||
break
|
break
|
||||||
if not _os_tenant_id:
|
if not _os_tenant_id:
|
||||||
module.fail_json(msg = "The tenant id cannot be found, please check the paramters")
|
module.fail_json(msg = "The tenant id cannot be found, please check the parameters")
|
||||||
|
|
||||||
|
|
||||||
def _get_router_id(module, neutron):
|
def _get_router_id(module, neutron):
|
||||||
|
|
|
@ -140,7 +140,7 @@ def _set_tenant_id(module):
|
||||||
_os_tenant_id = tenant.id
|
_os_tenant_id = tenant.id
|
||||||
break
|
break
|
||||||
if not _os_tenant_id:
|
if not _os_tenant_id:
|
||||||
module.fail_json(msg = "The tenant id cannot be found, please check the paramters")
|
module.fail_json(msg = "The tenant id cannot be found, please check the parameters")
|
||||||
|
|
||||||
|
|
||||||
def _get_router_id(module, neutron):
|
def _get_router_id(module, neutron):
|
||||||
|
|
|
@ -174,7 +174,7 @@ def _set_tenant_id(module):
|
||||||
_os_tenant_id = tenant.id
|
_os_tenant_id = tenant.id
|
||||||
break
|
break
|
||||||
if not _os_tenant_id:
|
if not _os_tenant_id:
|
||||||
module.fail_json(msg = "The tenant id cannot be found, please check the paramters")
|
module.fail_json(msg = "The tenant id cannot be found, please check the parameters")
|
||||||
|
|
||||||
def _get_net_id(neutron, module):
|
def _get_net_id(neutron, module):
|
||||||
kwargs = {
|
kwargs = {
|
||||||
|
|
|
@ -349,7 +349,7 @@ def download(module, cf, container, src, dest, structure):
|
||||||
|
|
||||||
def delete(module, cf, container, src, dest):
|
def delete(module, cf, container, src, dest):
|
||||||
""" Delete specific objects by proving a single file name or a
|
""" Delete specific objects by proving a single file name or a
|
||||||
comma-separated list to src OR dest (but not both). Ommitting file name(s)
|
comma-separated list to src OR dest (but not both). Omitting file name(s)
|
||||||
assumes the entire container is to be deleted.
|
assumes the entire container is to be deleted.
|
||||||
"""
|
"""
|
||||||
objs = None
|
objs = None
|
||||||
|
|
|
@ -443,7 +443,7 @@ def main():
|
||||||
if bucketrtn is True:
|
if bucketrtn is True:
|
||||||
module.exit_json(msg="Bucket already exists.", changed=False)
|
module.exit_json(msg="Bucket already exists.", changed=False)
|
||||||
else:
|
else:
|
||||||
module.exit_json(msg="Bucket created succesfully", changed=create_bucket(module, s3, bucket))
|
module.exit_json(msg="Bucket created successfully", changed=create_bucket(module, s3, bucket))
|
||||||
if bucket and obj:
|
if bucket and obj:
|
||||||
bucketrtn = bucket_check(module, s3, bucket)
|
bucketrtn = bucket_check(module, s3, bucket)
|
||||||
if obj.endswith('/'):
|
if obj.endswith('/'):
|
||||||
|
|
|
@ -7,7 +7,7 @@ short_description: Runs a local script on a remote node after transferring it
|
||||||
description:
|
description:
|
||||||
- "The M(script) module takes the script name followed by a list of
|
- "The M(script) module takes the script name followed by a list of
|
||||||
space-delimited arguments. "
|
space-delimited arguments. "
|
||||||
- "The local script at path will be transfered to the remote node and then executed. "
|
- "The local script at path will be transferred to the remote node and then executed. "
|
||||||
- "The given script will be processed through the shell environment on the remote node. "
|
- "The given script will be processed through the shell environment on the remote node. "
|
||||||
- "This module does not require python on the remote system, much like
|
- "This module does not require python on the remote system, much like
|
||||||
the M(raw) module. "
|
the M(raw) module. "
|
||||||
|
|
|
@ -198,7 +198,7 @@ def main():
|
||||||
pass
|
pass
|
||||||
mode = module.params['slave_mode']
|
mode = module.params['slave_mode']
|
||||||
|
|
||||||
#Check if we ahve all the data
|
#Check if we have all the data
|
||||||
if mode == "slave": # Only need data if we want to be slave
|
if mode == "slave": # Only need data if we want to be slave
|
||||||
if not master_host:
|
if not master_host:
|
||||||
module.fail_json(
|
module.fail_json(
|
||||||
|
@ -235,7 +235,7 @@ def main():
|
||||||
else:
|
else:
|
||||||
# Do the stuff
|
# Do the stuff
|
||||||
# (Check Check_mode before commands so the commands aren't evaluated
|
# (Check Check_mode before commands so the commands aren't evaluated
|
||||||
# if not necesary)
|
# if not necessary)
|
||||||
if mode == "slave":
|
if mode == "slave":
|
||||||
if module.check_mode or\
|
if module.check_mode or\
|
||||||
set_slave_mode(r, master_host, master_port):
|
set_slave_mode(r, master_host, master_port):
|
||||||
|
@ -281,7 +281,7 @@ def main():
|
||||||
|
|
||||||
# Do the stuff
|
# Do the stuff
|
||||||
# (Check Check_mode before commands so the commands aren't evaluated
|
# (Check Check_mode before commands so the commands aren't evaluated
|
||||||
# if not necesary)
|
# if not necessary)
|
||||||
if mode == "all":
|
if mode == "all":
|
||||||
if module.check_mode or flush(r):
|
if module.check_mode or flush(r):
|
||||||
module.exit_json(changed=True, flushed=True)
|
module.exit_json(changed=True, flushed=True)
|
||||||
|
|
|
@ -77,7 +77,7 @@ options:
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
description:
|
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 superceeded 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 requried. '-' can be used as placeholder when you do not care about permissions. This is now superseded by entity, type and permissions fields.
|
||||||
|
|
||||||
author: Brian Coca
|
author: Brian Coca
|
||||||
notes:
|
notes:
|
||||||
|
|
|
@ -165,7 +165,7 @@ def main():
|
||||||
res = {}
|
res = {}
|
||||||
|
|
||||||
if key is None and state in ['present','absent']:
|
if key is None and state in ['present','absent']:
|
||||||
module.fail_json(msg="%s needs a key paramter" % state)
|
module.fail_json(msg="%s needs a key parameter" % state)
|
||||||
|
|
||||||
# All xattr must begin in user namespace
|
# All xattr must begin in user namespace
|
||||||
if key is not None and not re.match('^user\.',key):
|
if key is not None and not re.match('^user\.',key):
|
||||||
|
|
|
@ -145,7 +145,7 @@ class AristaInterface(object):
|
||||||
""" This method will return a dictionary with the attributes of the
|
""" This method will return a dictionary with the attributes of the
|
||||||
physical ethernet interface resource specified in interface_id.
|
physical ethernet interface resource specified in interface_id.
|
||||||
The physcial ethernet interface resource has the following
|
The physcial ethernet interface resource has the following
|
||||||
stucture:
|
structure:
|
||||||
|
|
||||||
{
|
{
|
||||||
"interface_id": <interface_id>,
|
"interface_id": <interface_id>,
|
||||||
|
|
|
@ -154,7 +154,7 @@ class AristaL2Interface(object):
|
||||||
def get(self):
|
def get(self):
|
||||||
""" This method will return a dictionary with the attributes of the
|
""" This method will return a dictionary with the attributes of the
|
||||||
layer 2 interface resource specified in interface_id. The layer
|
layer 2 interface resource specified in interface_id. The layer
|
||||||
2 interface resource has the following stucture:
|
2 interface resource has the following structure:
|
||||||
|
|
||||||
{
|
{
|
||||||
"interface_id": <interface_id>,
|
"interface_id": <interface_id>,
|
||||||
|
|
|
@ -143,7 +143,7 @@ class AristaLag(object):
|
||||||
def get(self):
|
def get(self):
|
||||||
""" This method will return a dictionary with the attributes of the
|
""" This method will return a dictionary with the attributes of the
|
||||||
lag interface resource specified in interface_id. The lag
|
lag interface resource specified in interface_id. The lag
|
||||||
interface resource has the following stucture:
|
interface resource has the following structure:
|
||||||
|
|
||||||
{
|
{
|
||||||
"interface_id": <interface_id>,
|
"interface_id": <interface_id>,
|
||||||
|
|
|
@ -234,7 +234,7 @@ class AristaVlan(object):
|
||||||
def get(self):
|
def get(self):
|
||||||
""" This method will return a dictionary with the attributes of the
|
""" This method will return a dictionary with the attributes of the
|
||||||
VLAN resource identified in vlan_id. The VLAN resource has the
|
VLAN resource identified in vlan_id. The VLAN resource has the
|
||||||
following stucture:
|
following structure:
|
||||||
|
|
||||||
{
|
{
|
||||||
"vlan_id": <vlan_id>,
|
"vlan_id": <vlan_id>,
|
||||||
|
|
|
@ -101,7 +101,7 @@ options:
|
||||||
default: none
|
default: none
|
||||||
port:
|
port:
|
||||||
description:
|
description:
|
||||||
- port address part op the ipport definition. Tyhe default API
|
- port address part op the ipport definition. The default API
|
||||||
setting is 0.
|
setting is 0.
|
||||||
required: false
|
required: false
|
||||||
default: none
|
default: none
|
||||||
|
|
|
@ -101,7 +101,7 @@ options:
|
||||||
default: none
|
default: none
|
||||||
port:
|
port:
|
||||||
description:
|
description:
|
||||||
- port address part op the ipport definition. Tyhe default API
|
- port address part op the ipport definition. The default API
|
||||||
setting is 0.
|
setting is 0.
|
||||||
required: false
|
required: false
|
||||||
default: none
|
default: none
|
||||||
|
|
|
@ -24,7 +24,7 @@ description:
|
||||||
options:
|
options:
|
||||||
account_email:
|
account_email:
|
||||||
description:
|
description:
|
||||||
- "Account email. If ommitted, the env variables DNSIMPLE_EMAIL and DNSIMPLE_API_TOKEN will be looked for. If those aren't found, a C(.dnsimple) file will be looked for, see: U(https://github.com/mikemaccana/dnsimple-python#getting-started)"
|
- "Account email. If omitted, the env variables DNSIMPLE_EMAIL and DNSIMPLE_API_TOKEN will be looked for. If those aren't found, a C(.dnsimple) file will be looked for, see: U(https://github.com/mikemaccana/dnsimple-python#getting-started)"
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ options:
|
||||||
|
|
||||||
domain:
|
domain:
|
||||||
description:
|
description:
|
||||||
- Domain to work with. Can be the domain name (e.g. "mydomain.com") or the numeric ID of the domain in DNSimple. If ommitted, a list of domains will be returned.
|
- Domain to work with. Can be the domain name (e.g. "mydomain.com") or the numeric ID of the domain in DNSimple. If omitted, a list of domains will be returned.
|
||||||
- If domain is present but the domain doesn't exist, it will be created.
|
- If domain is present but the domain doesn't exist, it will be created.
|
||||||
required: false
|
required: false
|
||||||
default: null
|
default: null
|
||||||
|
|
|
@ -98,7 +98,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- The character set of email being sent
|
- The character set of email being sent
|
||||||
default: 'us-ascii'
|
default: 'us-ascii'
|
||||||
requred: false
|
required: false
|
||||||
"""
|
"""
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
|
|
@ -286,7 +286,7 @@ class RhsmPools(object):
|
||||||
|
|
||||||
def _load_product_list(self):
|
def _load_product_list(self):
|
||||||
"""
|
"""
|
||||||
Loads list of all availaible pools for system in data structure
|
Loads list of all available pools for system in data structure
|
||||||
"""
|
"""
|
||||||
args = "subscription-manager list --available"
|
args = "subscription-manager list --available"
|
||||||
rc, stdout, stderr = self.module.run_command(args, check_rc=True)
|
rc, stdout, stderr = self.module.run_command(args, check_rc=True)
|
||||||
|
|
|
@ -145,7 +145,7 @@ class Group(object):
|
||||||
|
|
||||||
class SunOS(Group):
|
class SunOS(Group):
|
||||||
"""
|
"""
|
||||||
This is a SunOS Group manipulation class. Solaris doesnt have
|
This is a SunOS Group manipulation class. Solaris doesn't have
|
||||||
the 'system' group concept.
|
the 'system' group concept.
|
||||||
|
|
||||||
This overrides the following methods from the generic class:-
|
This overrides the following methods from the generic class:-
|
||||||
|
|
|
@ -57,7 +57,7 @@ def apply_change(targetState, name, encoding):
|
||||||
"""Create or remove locale.
|
"""Create or remove locale.
|
||||||
|
|
||||||
Keyword arguments:
|
Keyword arguments:
|
||||||
targetState -- Desired state, eiter present or absent.
|
targetState -- Desired state, either present or absent.
|
||||||
name -- Name including encoding such as de_CH.UTF-8.
|
name -- Name including encoding such as de_CH.UTF-8.
|
||||||
encoding -- Encoding such as UTF-8.
|
encoding -- Encoding such as UTF-8.
|
||||||
"""
|
"""
|
||||||
|
@ -76,7 +76,7 @@ def apply_change_ubuntu(targetState, name, encoding):
|
||||||
"""Create or remove locale.
|
"""Create or remove locale.
|
||||||
|
|
||||||
Keyword arguments:
|
Keyword arguments:
|
||||||
targetState -- Desired state, eiter present or absent.
|
targetState -- Desired state, either present or absent.
|
||||||
name -- Name including encoding such as de_CH.UTF-8.
|
name -- Name including encoding such as de_CH.UTF-8.
|
||||||
encoding -- Encoding such as UTF-8.
|
encoding -- Encoding such as UTF-8.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -531,7 +531,7 @@ class LinuxService(Service):
|
||||||
|
|
||||||
# if the job status is still not known check it by status output keywords
|
# if the job status is still not known check it by status output keywords
|
||||||
if self.running is None:
|
if self.running is None:
|
||||||
# first tranform the status output that could irritate keyword matching
|
# first transform the status output that could irritate keyword matching
|
||||||
cleanout = status_stdout.lower().replace(self.name.lower(), '')
|
cleanout = status_stdout.lower().replace(self.name.lower(), '')
|
||||||
if "stop" in cleanout:
|
if "stop" in cleanout:
|
||||||
self.running = False
|
self.running = False
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# The Docker inventory plugin provides several enviroment variables that
|
# The Docker inventory plugin provides several environment variables that
|
||||||
# may be overridden here. This configuration file always takes precedence
|
# may be overridden here. This configuration file always takes precedence
|
||||||
# over environment variables.
|
# over environment variables.
|
||||||
#
|
#
|
||||||
|
|
|
@ -193,7 +193,7 @@ if __name__ == '__main__':
|
||||||
client = Client( host,user,password )
|
client = Client( host,user,password )
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
client = None
|
client = None
|
||||||
#print >> STDERR "Unable to login (only cache avilable): %s", str(e)
|
#print >> STDERR "Unable to login (only cache available): %s", str(e)
|
||||||
|
|
||||||
# Actually do the work
|
# Actually do the work
|
||||||
if hostname is None:
|
if hostname is None:
|
||||||
|
|
|
@ -164,7 +164,7 @@
|
||||||
that:
|
that:
|
||||||
- "file11_result.uid == 1235"
|
- "file11_result.uid == 1235"
|
||||||
|
|
||||||
- name: fail to create soft link to non existant file
|
- name: fail to create soft link to non existent file
|
||||||
file: src=/noneexistant dest={{output_dir}}/soft2.txt state=link force=no
|
file: src=/noneexistant dest={{output_dir}}/soft2.txt state=link force=no
|
||||||
register: file12_result
|
register: file12_result
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
@ -174,7 +174,7 @@
|
||||||
that:
|
that:
|
||||||
- "file12_result.failed == true"
|
- "file12_result.failed == true"
|
||||||
|
|
||||||
- name: force creation soft link to non existant
|
- name: force creation soft link to non existent
|
||||||
file: src=/noneexistant dest={{output_dir}}/soft2.txt state=link force=yes
|
file: src=/noneexistant dest={{output_dir}}/soft2.txt state=link force=yes
|
||||||
register: file13_result
|
register: file13_result
|
||||||
|
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
stat: path={{ checkout_dir }}/.git/branches
|
stat: path={{ checkout_dir }}/.git/branches
|
||||||
register: branches
|
register: branches
|
||||||
|
|
||||||
- name: assert presense of tags/trunk/branches
|
- name: assert presence of tags/trunk/branches
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- "tags.stat.isdir"
|
- "tags.stat.isdir"
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
- debug: var=tags
|
- debug: var=tags
|
||||||
- debug: var=branches
|
- debug: var=branches
|
||||||
|
|
||||||
- name: assert presense of tags/trunk/branches
|
- name: assert presence of tags/trunk/branches
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- "tags.stat.isreg"
|
- "tags.stat.isreg"
|
||||||
|
|
|
@ -63,11 +63,11 @@
|
||||||
|
|
||||||
# now remove it to test uninstallation of a package we are sure is installed
|
# now remove it to test uninstallation of a package we are sure is installed
|
||||||
|
|
||||||
- name: now uninstall so we can see that a change occured
|
- name: now uninstall so we can see that a change occurred
|
||||||
pip: name={{ pip_test_package }} state=absent
|
pip: name={{ pip_test_package }} state=absent
|
||||||
register: absent2
|
register: absent2
|
||||||
|
|
||||||
- name: assert a change occured on uninstallation
|
- name: assert a change occurred on uninstallation
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- "absent2.changed"
|
- "absent2.changed"
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
stat: path={{ checkout_dir }}/branches
|
stat: path={{ checkout_dir }}/branches
|
||||||
register: branches
|
register: branches
|
||||||
|
|
||||||
- name: assert presense of tags/trunk/branches
|
- name: assert presence of tags/trunk/branches
|
||||||
assert:
|
assert:
|
||||||
that:
|
that:
|
||||||
- "tags.stat.isdir"
|
- "tags.stat.isdir"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# order of groups, children, and vars is not signficant
|
# order of groups, children, and vars is not significant
|
||||||
# so this example mixes them up for maximum testing
|
# so this example mixes them up for maximum testing
|
||||||
|
|
||||||
[nc:children]
|
[nc:children]
|
||||||
|
|
Loading…
Reference in a new issue