Merge pull request #1253 from AlanCoding/group_vars

Use --export option for ansible-inventory
This commit is contained in:
Alan Rominger 2018-02-14 15:52:00 -05:00 committed by GitHub
commit c90cf7c5e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1905,6 +1905,8 @@ class RunInventoryUpdate(BaseTask):
# Pass inventory source ID to inventory script.
env['INVENTORY_SOURCE_ID'] = str(inventory_update.inventory_source_id)
env['INVENTORY_UPDATE_ID'] = str(inventory_update.pk)
# Always use the --export option for ansible-inventory
env['ANSIBLE_INVENTORY_EXPORT'] = str(True)
# Set environment variables specific to each source.
#