mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
Merge pull request #15890 from brandond/inv_refresh_hostvars-fixes_15115
Ignore limits and restrictions when parsing inventory.
This commit is contained in:
@@ -159,8 +159,8 @@ class Inventory(object):
|
|||||||
group.vars = combine_vars(group.vars, self.get_group_variables(group.name))
|
group.vars = combine_vars(group.vars, self.get_group_variables(group.name))
|
||||||
self.get_group_vars(group)
|
self.get_group_vars(group)
|
||||||
|
|
||||||
# set host vars from host_vars/ files and vars plugins
|
# get host vars from host_vars/ files and vars plugins
|
||||||
for host in self.get_hosts():
|
for host in self.get_hosts(ignore_limits_and_restrictions=True):
|
||||||
host.vars = combine_vars(host.vars, self.get_host_variables(host.name))
|
host.vars = combine_vars(host.vars, self.get_host_variables(host.name))
|
||||||
self.get_host_vars(host)
|
self.get_host_vars(host)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user