community.general/lib/ansible
Nils Steinger 0129fb0a44 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.
2015-12-05 15:54:08 +01:00
..
cli fixed ansible-pull broken options 2015-12-03 20:47:02 -08:00
compat Bundle a new version of python-six for compatibility along with some code to make it easy for distributions to override the bunndled copy if they have a new enough version. 2015-10-16 08:21:28 -07:00
config Making the switch to v2 2015-05-03 21:47:26 -05:00
errors Default msg param to AnsibleError to avoid serialization problems 2015-12-02 14:16:47 -05:00
executor Transform exceptions into ansible messages via to_unicode instead of str to avoid tracebacks. 2015-12-04 11:50:39 -08:00
galaxy Fix traceback because we're using display from another object that no 2015-11-11 12:19:00 -08:00
inventory Remove duplicates from host list *before* caching it 2015-12-05 15:54:08 +01:00
module_utils Merge pull request #13373 from no2a/boolean 2015-12-04 12:17:12 -08:00
modules Update submodule refs# 2015-12-04 09:57:06 -08:00
new_inventory fix some warning of undefined name. 2015-10-09 12:43:42 +08:00
parsing Put in trap for args being None 2015-11-28 13:38:11 -05:00
playbook Properly default remote_user for delegated-to hosts 2015-12-03 11:31:33 -05:00
plugins Now and/or shell expressions depend on shell plugin 2015-12-03 16:38:34 -08:00
template Re-implement lookup wantlist 2015-11-29 23:45:54 -05:00
utils Finish up plugin porting to global display 2015-11-11 10:44:23 -08:00
vars fix sorting of groups for host vars 2015-12-03 14:23:02 -05:00
__init__.py Bump version in devel now that stable-2.0 has been branched 2015-12-02 17:57:53 +05:30
constants.py Revert "Make sudo+requiretty and ANSIBLE_PIPELINING work together" 2015-12-03 08:01:05 -08:00
test-requirements.txt Making the switch to v2 2015-05-03 21:47:26 -05:00