use --export option for ansible-inventory

This commit is contained in:
AlanCoding 2018-02-14 12:29:02 -05:00
parent c1b6595a0b
commit 05e6eda453
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B

View File

@ -1903,6 +1903,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.
#