Commit Graph

17273 Commits (75e6fb30d5da4622ae7b9d75d0da905fc464a465)
 

Author SHA1 Message Date
Brian Coca 8a733d990f simplified get_hosts code to have 1 retrun point 9 years ago
Nils Steinger 895fc48700 Remove duplicates from host list *before* caching it
Ansible previously added hosts to the host list multiple times for commands
like `ansible -i 'localhost,' -c local -m ping 'localhost,localhost'
--list-hosts`.
8d5f36a fixed the obvious error, but still added the un-deduplicated list to a
cache, so all future invocations of get_hosts() would retrieve a
non-deduplicated list.
This caused problems down the line: For some reason, Ansible only ever
schedules "flush_handlers" tasks (instead of scheduling any actual tasks from
the playbook) for hosts that are contained in the host lists multiple times.
This probably happens because the host states are stored in a dictionary
indexed by the hostnames, so duplicate hostname would cause the state to be
overwritten by subsequent invocations of … something.
9 years ago
Brian Coca 2068ff8926 updated pull location in changelog
it was in between of backslash description and example
9 years ago
sam-at-github da6670cca4 Add fullstop to make sentence make sense. Touch parargraph while at it. 9 years ago
“Brice d0337a8928 comment examples in default hosts file 9 years ago
Toshio Kuratomi 4c21d58f4c Transform exceptions into ansible messages via to_unicode instead of str to avoid tracebacks.
Fixes #13385
9 years ago
Florian Haas 86ca0bf3b1 Correct connection type returned by libvirt_lxc inventory script
The correct connection type for LXC containers managed via libvirt is
libvirt_lxc, not lxc.
9 years ago
James Cammarata 627576a955 Adding a uuid field so we can track host equality across serialization too 9 years ago
Toshio Kuratomi 3aa4db5083 Update submodule refs 9 years ago
James Cammarata cd76552724 Changing up how host (in)equality is checked
Fixes #13397
9 years ago
Brian Coca f630e140d2 fixed ansible-pull broken options
* sudo was not working, now it supports full become
* now default checkout dir works, not only when specifying
* paths for checkout dir get expanded
* fixed limit options for playbook
* added verbose and debug info
9 years ago
Brian Coca c03b8ef0c2 return unique list of hosts 9 years ago
Brian Coca 46718ac3f4 reverted to previous pull checkout dir behaviour
This fixes bugs with not finding plays when not specifying checkout dir
Also makes it backwards compatible
9 years ago
Brian Coca 3e5c7c540b corrected playbook path, reformated options help
the last just to make the help consistent and readable
9 years ago
Brian Coca 7950f09d19 Now and/or shell expressions depend on shell plugin
This should fix issues with fish shell users as && and || are
not valid syntax, fish uses actual 'and' and 'or' programs.
Also updated to allow for fish backticks pushed quotes to subshell,
fish seems to handle spaces w/o them.
Lastly, removed encompassing subshell () for fish compatibility.
fixes #13199
9 years ago
Toshio Kuratomi f8911adbbc For now, skip tests of module_utils/basic functions that are failing on
py3 (these are only run on the target hosts, not on the controller).
9 years ago
James Cammarata 6aa1b6d9b1 Properly compare object references for Hosts when adding new ones
Fixes #13397
9 years ago
James Cammarata 013ace9ab2 fix sorting of groups for host vars
Fixes #13371
9 years ago
James Cammarata 0d0ed35ba4 Properly default remote_user for delegated-to hosts
Fixes #13323
9 years ago
Toshio Kuratomi b9fbfaf64e Also some unicode tests for return_values() 9 years ago
Toshio Kuratomi 2c5c7b54f6 Add some test data that has unicode values 9 years ago
Toshio Kuratomi c1aeda59bd Don't compare or merge str with unicode
Fixes #13387
9 years ago
Brian Coca 0f813fd76a updated docs for 2.0 api 9 years ago
James Cammarata 38c11e2239 Default msg param to AnsibleError to avoid serialization problems 9 years ago
James Cammarata ed4a06d8ef Don't use play vars in HostVars
Fixes #13398
9 years ago
Toshio Kuratomi 65f4cbf487 Fix template test results on python2.6 9 years ago
muffl0n 48a3922d56 Add example for regex_replace using named groups 9 years ago
Matt Martz ca838d75e3 Get v2_playbook_on_start working
* Move self._tqm.load_callbacks() earlier to ensure that v2_on_playbook_start can fire
* Pass the playbook instance to v2_on_playbook_start
* Add a _file_name instance attribute to the playbook
9 years ago
Abhijit Menon-Sen f339184e29 Use CLI.expand_tilde also for the vault --output file 9 years ago
Brian Coca 91f71b0ace added remote environment var setting to changelog 9 years ago
Abhijit Menon-Sen f2f310472f Make module_lang default to whatever LANG is set to on the control node 9 years ago
Matt Martz de7dc5d07f Catch additional assertion errors for load_list_of_blocks 9 years ago
Brian Coca ae5cfb2898 better error on invalid task lists 9 years ago
James Cammarata 381409140e Minor tweak and comment addition to 974a0ce3 9 years ago
Christoph Dittmann be92f909ee Update debug messages and comments
The comment was taken literally from lib/plugins/strategy/linear.py and
makes no sense in free.py where we have no noop tasks.

Also update the debug messages.
9 years ago
Christoph Dittmann 974a0ce3fb Fix issue #13370
all_blocks is referenced after the loop over included_files, so it needs
to be initialized before this loop, not inside.
9 years ago
Christoph Dittmann 1f1febaa0d Let PlayIterator.add_tasks accept empty task lists
PlayIterator.add_tasks raised an error when trying to add an empty task
list.  This was the root cause of ansible issue #13370.
9 years ago
Brian Coca 3c25ae2e10 updated new module list
added missing modules and fixed alphabetical ordering
9 years ago
Brian Coca d9218ce33f reformated test, changed big assert to with_items
much easier to see the individual condition that causes the failure
when using with_items and evaluating each part of the assert individually
9 years ago
Brian Coca 346a9fe87d unconditionally set vars on init to avoid issues with var precedence 9 years ago
Peter Sprygada 5b5c6c4f47 fixes a syntax issue with module_utils/eapi.py
This patch fixes an issue with the common args dict in the eapi shared
module.  This patch is required for the eapi shared module to be properly
imported and is therefore should be applied to all instances.
9 years ago
Peter Sprygada 02d059271c initial add of ssh shared module.
This ssh shared module is used for building modules that require an
interactive shell environment such as those required for connecting
to network devices
9 years ago
Peter Sprygada a6771b2255 adds module create function for eapi.py shared module
This commit changes the way modules create an instance of AnsibleModule to
now use a common function, eapi_module.  This function will now automatically
append the common argument spec to the module argument_spec.  Module
arguments can override common module arguments
9 years ago
Peter Sprygada a9e8b54246 initial add of the ios shared module
This adds shared module support for building modules that connect to Cisco
IOS devices.  It builds on the module_utils/ssh.py shared module.
9 years ago
Brian Coca d2108e9ff3 fixed signature for init on callbacks
also removed passing display to base class which already handles this
9 years ago
nitzmahone 59dadc4f6b allow shell plugin to affect remote module filename
Fix for 13368, added get_remote_filename to shell plugins, powershell version appends .ps1 if necessary, base shell plugin no-ops
9 years ago
Brian Coca 927d28e5d5 added pull's code sig verification to changelog 9 years ago
Toshio Kuratomi a61718cfc5 Revert "Note that su now works with local connection"
This reverts commit 93ef35e6a9.

bcoca already added this
9 years ago
Toshio Kuratomi 93ef35e6a9 Note that su now works with local connection 9 years ago
Toshio Kuratomi b0e22d7701 _connect no longer takes a port argument 9 years ago