diff options
author | Brad Davidson <brad@oatmail.org> | 2016-05-15 22:09:56 -0700 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2016-07-05 16:02:13 -0500 |
commit | 75a3526680a36c463866623131a210885a462857 (patch) | |
tree | a90fa4ce756f044803b5b96a14d3db0ba2f5c52d | |
parent | 5982a0632fc8dcf2dc56e1decb5725e809a204ed (diff) | |
download | ansible-75a3526680a36c463866623131a210885a462857.tar.gz |
Ignore limits and restrictions when parsing inventory.
We want to update host vars for all hosts (even those that might
have failed), and the in case of a refresh_inventory, the code has
a stale restrictions list at this point anyway.
(cherry picked from commit 0c4effb8a6b45bc7d2c3f56d904141b81f9e3be6)
-rw-r--r-- | lib/ansible/inventory/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ansible/inventory/__init__.py b/lib/ansible/inventory/__init__.py index 97de401a6f..ea95ba33a7 100644 --- a/lib/ansible/inventory/__init__.py +++ b/lib/ansible/inventory/__init__.py @@ -159,8 +159,8 @@ class Inventory(object): group.vars = combine_vars(group.vars, self.get_group_variables(group.name)) self.get_group_vars(group) - # set host vars from host_vars/ files and vars plugins - for host in self.get_hosts(): + # get host vars from host_vars/ files and vars plugins + for host in self.get_hosts(ignore_limits_and_restrictions=True): host.vars = combine_vars(host.vars, self.get_host_variables(host.name)) self.get_host_vars(host) |