diff options
author | James Cammarata <jimi@sngx.net> | 2014-08-14 13:18:26 -0500 |
---|---|---|
committer | James Cammarata <jimi@sngx.net> | 2014-08-14 15:04:38 -0500 |
commit | ef1ae4db8627983964a62b22d7f9e4b04bf36bc2 (patch) | |
tree | d3587f8bf90772800638405474a6529a0c7e709f | |
parent | 789196b2b8fd610a31e8b8fe62955ea27f8e9c21 (diff) | |
download | ansible-ef1ae4db8627983964a62b22d7f9e4b04bf36bc2.tar.gz |
Load group_vars for new groups loaded via add_host
Fixes #8605
-rw-r--r-- | lib/ansible/runner/action_plugins/add_host.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ansible/runner/action_plugins/add_host.py b/lib/ansible/runner/action_plugins/add_host.py index 2ab2164d5c..0e49e928db 100644 --- a/lib/ansible/runner/action_plugins/add_host.py +++ b/lib/ansible/runner/action_plugins/add_host.py @@ -83,6 +83,7 @@ class ActionModule(object): if not inventory.get_group(group_name): new_group = Group(group_name) inventory.add_group(new_group) + new_group.vars = inventory.get_group_variables(group_name, vault_password=inventory._vault_password) grp = inventory.get_group(group_name) grp.add_host(new_host) |