1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/lib/ansible
James Cammarata b617d62203 Don't use an unset playbook basedir when searching for hostgroup vars
The flag new_pb_basedir is not being utilized in Inventory._get_hostgroup_vars,
leading to the situation where an inventory with no playbook basedir set will
read host/group vars from the $CWD, regardless of the inventory and/or playbook
relative location. This patch corrects that by not using the playbook basedir
if it is unset (None).

This patch also corrects a bug in which the VariableManager would accumulate
host/group vars files, which could lead to incorrect vars files being used when
playbooks are run from different directories containing their own group/host vars
directories.

Fixes #16953
2016-08-17 16:28:48 -05:00
..
cli slightly better presentation docs 2016-08-15 11:00:29 -04: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 Fix some typos (#16498) 2016-06-29 14:31:25 -04:00
executor Don't use an unset playbook basedir when searching for hostgroup vars 2016-08-17 16:28:48 -05:00
galaxy Fixes #163 in galaxy-issues 2016-07-21 14:04:17 -04:00
inventory Don't use an unset playbook basedir when searching for hostgroup vars 2016-08-17 16:28:48 -05:00
module_utils Relicense netcfg.py to BSD (#17110) 2016-08-16 16:32:02 -04:00
modules Update submodule refs 2016-08-15 20:01:24 -04:00
parsing Remove a useless section, only act on 'shell' (#16205) 2016-08-12 10:13:02 -07:00
playbook Rework the way params are assigned to TaskIncludes when they're dynamic 2016-08-16 15:45:24 -05:00
plugins Catch a missing include_vars filename 2016-08-17 09:35:37 -05:00
template Emit warnings when safe_eval() raises a SyntaxError or other Exception (#14304) 2016-08-12 09:29:54 -04:00
utils Update junos docs fragment to note the default port for transport=netconf 2016-08-13 14:52:06 +00:00
vars Don't use an unset playbook basedir when searching for hostgroup vars 2016-08-17 16:28:48 -05:00
__init__.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
constants.py * Fix race in creating temp directories pre-fork (#16965) 2016-08-04 19:35:36 -04:00
release.py Fix ziploader for the cornercase of ansible invoking ansible. 2016-04-29 08:47:49 -07:00
test-requirements.txt Making the switch to v2 2015-05-03 21:47:26 -05:00