mirror of
https://github.com/ansible/awx.git
synced 2026-01-22 23:18:03 -03:30
Fail constructed inventory if ANY source is unparsed
This commit is contained in:
parent
ce4c1c11b3
commit
771b831da8
@ -1643,8 +1643,9 @@ class constructed(PluginFileInjector):
|
||||
|
||||
def build_env(self, *args, **kwargs):
|
||||
env = super().build_env(*args, **kwargs)
|
||||
# Enable all types of inventory plugins so we pick up the script files from source inventories
|
||||
del env['ANSIBLE_INVENTORY_ENABLED']
|
||||
# Enable script inventory plugin so we pick up the script files from source inventories
|
||||
env['ANSIBLE_INVENTORY_ENABLED'] += ',script'
|
||||
env['ANSIBLE_INVENTORY_ANY_UNPARSED_IS_FAILED'] = 'True'
|
||||
return env
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user