mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-08 15:14:20 -07:00
Do not copy variable_manager each time. Instead, keep host and local variable_manager sync.
Fix https://github.com/ansible/ansible/issues/13221
This commit is contained in:
parent
31d06886d5
commit
5227c6bb52
3 changed files with 14 additions and 2 deletions
|
@ -79,6 +79,15 @@ class HostVars(collections.Mapping):
|
|||
self._cached_result[sha1_hash] = result
|
||||
return result
|
||||
|
||||
def set_host_variable(self, host, varname, value):
|
||||
self._variable_manager.set_host_variable(host, varname, value)
|
||||
|
||||
def set_nonpersistent_facts(self, host, facts):
|
||||
self._variable_manager.set_nonpersistent_facts(host, facts)
|
||||
|
||||
def set_host_facts(self, host, facts):
|
||||
self._variable_manager.set_host_facts(host, facts)
|
||||
|
||||
def __contains__(self, host_name):
|
||||
return self._find_host(host_name) is not None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue