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 0c4effb8a6
)
This commit is contained in:
parent
5982a0632f
commit
75a3526680
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue