From b01deb393ea865ff509ed0fc12fcf223ef9bb0c7 Mon Sep 17 00:00:00 2001 From: AlanCoding Date: Wed, 14 Feb 2018 12:29:02 -0500 Subject: [PATCH] use --export option for ansible-inventory --- awx/main/tasks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index 6b9feeabe5..dbc7d2ed30 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -1892,6 +1892,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. #