Merge pull request #551 from ansible/tower_inventory_source

Tower inventory source
This commit is contained in:
Matthew Jones
2017-10-27 08:41:24 -04:00
committed by GitHub
16 changed files with 210 additions and 14 deletions
+3
View File
@@ -1918,6 +1918,9 @@ class RunInventoryUpdate(BaseTask):
for env_k in inventory_update.source_vars_dict:
if str(env_k) not in env and str(env_k) not in settings.INV_ENV_VARIABLE_BLACKLIST:
env[str(env_k)] = unicode(inventory_update.source_vars_dict[env_k])
elif inventory_update.source == 'tower':
env['TOWER_INVENTORY'] = inventory_update.instance_filters
env['TOWER_LICENSE_TYPE'] = get_licenser().validate()['license_type']
elif inventory_update.source == 'file':
raise NotImplementedError('Cannot update file sources through the task system.')
# add private_data_files